diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 670cda00f4e..53f1460bfba 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -714,6 +714,10 @@ init (xlator_t *this)          glusterd_op_sm_init ();          glusterd_opinfo_init (); +        ret = glusterd_handle_upgrade_downgrade (this->options, conf); +        if (ret) +                goto out; +          glusterd_restart_bricks (conf);          ret = glusterd_restart_gsyncds (conf);          if (ret) @@ -818,6 +822,12 @@ struct volume_options options[] = {          { .key   = {"rpc-auth-allow-insecure"},            .type  = GF_OPTION_TYPE_BOOL,          }, +        { .key  = {"upgrade"}, +          .type = GF_OPTION_TYPE_BOOL, +        }, +        { .key  = {"downgrade"}, +          .type = GF_OPTION_TYPE_BOOL, +        },          { .key   = {NULL} },  };  | 
