diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2019-04-09 14:58:29 +0530 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2019-04-16 10:50:21 +0000 |
commit | aca7ec21ed1823440abe8409f7f9c4a8864cf8fa (patch) | |
tree | 571489970dff6dec4489e2c3fc79a1954c5173d2 /xlators | |
parent | c2723c57d2cb85da5c14a900e049f4ce9469444d (diff) |
glusterd: load ctime in the client graph only if it's not turned off
Considering ctime is a client side feature, we can't blindly load ctime
xlator into the client graph if it's explicitly turned off, that'd
result into backward compatibility issue where an old client can't mount
a volume configured on a server which is having ctime feature.
Fixes: bz#1698471
Change-Id: I6ae7b96d056073aa6746de9a449cf319786d45cc
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
(cherry picked from commit efbf8abcc3bc729a90d4a7b57dc515f1df8a5863)
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index b7c7bd9b638..131bdd394e5 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -4283,7 +4283,8 @@ client_graph_builder(volgen_graph_t *graph, glusterd_volinfo_t *volinfo, } } - if (conf->op_version >= GD_OP_VERSION_5_0) { + if (conf->op_version >= GD_OP_VERSION_5_0 && + !dict_get_str_boolean(set_dict, "features.ctime", _gf_false)) { xl = volgen_graph_add(graph, "features/utime", volname); if (!xl) { ret = -1; |