diff options
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot.c | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c index a4c60a87d9e..eef6129745a 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -3841,6 +3841,15 @@ glusterd_do_snap_vol (glusterd_volinfo_t *origin_vol, glusterd_snap_t *snap,          } +        /* During snapshot creation if I/O is in progress, +         * then barrier value is enabled. Hence during snapshot create +         * and in-turn snapshot restore the barrier value is set to enable. +         * Because of this further I/O on the mount point fails. +         * Hence remove the barrier key from newly created snap volinfo +         * before storing and generating the brick volfiles. +         */ +        dict_del (snap_vol->dict, "features.barrier"); +          ret = glusterd_store_volinfo (snap_vol,                                        GLUSTERD_VOLINFO_VER_AC_INCREMENT);          if (ret) {  | 
