diff options
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 8c341153db4..3737e1aef0c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -1805,6 +1805,7 @@ glusterd_op_set_all_volume_options (xlator_t *this, dict_t *dict)          char            *next_version   = NULL;          gf_boolean_t    quorum_action   = _gf_false;          uint32_t        op_version      = 0; +        glusterd_volinfo_t  *volinfo    = NULL;          conf = this->private;          ret = dict_get_str (dict, "key1", &key); @@ -1845,6 +1846,12 @@ glusterd_op_set_all_volume_options (xlator_t *this, dict_t *dict)                                          "Failed to store op-version.");                          }                  } +                list_for_each_entry (volinfo, &conf->volumes, vol_list) { +                        ret = glusterd_store_volinfo +                                (volinfo, GLUSTERD_VOLINFO_VER_AC_INCREMENT); +                        if (ret) +                                goto out; +                }                  /* No need to save cluster.op-version in conf->opts                   */                  goto out;  | 
