openebs-archive / libcstor

CAS Data Engine - Library to serve IOs on uZFS with synchronous replication, snapshots and clones
https://www.openebs.io
Apache License 2.0
18 stars 27 forks source link

fix(rebuild) reset the snap_inprogress when connection is valid. #22

Closed pawanpraka1 closed 5 years ago

pawanpraka1 commented 5 years ago

there may be some async task for the old connection so we can not reset the snap_in_progress flag. We already gurranty that we have one connection at a time so We should check for connection to be valid before doing that.

Signed-off-by: Pawan pawan@mayadata.io

vishnuitta commented 5 years ago

This needs https://github.com/openebs/cstor/pull/260 for travis to pass. So merging this.