diff options
author | Hari Gowtham <hgowtham@redhat.com> | 2019-05-02 18:33:34 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-05-27 07:50:24 +0000 |
commit | e1cc4275583dfd8ae8d0433587f39854c1851794 (patch) | |
tree | 5b09910701f803bbc4355f537a698a017513f70c /xlators/mgmt/glusterd/src/glusterd-handshake.c | |
parent | cce775726af28c602d99f73a65439a2564790381 (diff) |
glusterd/tier: remove tier related code from glusterd
The handler functions are pointed to dummy functions.
The switch case handling for tier also have been moved to
point default case to avoid issues, if reintroduced.
The tier changes in DHT still remain as such.
updates: bz#1693692
Change-Id: I80d80c9a3eb862b4440a36b31ae82b2e9d92e4dc
Signed-off-by: Hari Gowtham <hgowtham@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handshake.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handshake.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c index 26cfdd1fba5..52f24f6d713 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handshake.c +++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c @@ -21,7 +21,6 @@ #include "glusterd-snapshot-utils.h" #include "glusterd-svc-mgmt.h" #include "glusterd-snapd-svc-helper.h" -#include "glusterd-tierd-svc-helper.h" #include "glusterd-volgen.h" #include "glusterd-quotad-svc.h" #include "glusterd-messages.h" @@ -253,26 +252,6 @@ build_volfile_path(char *volume_id, char *path, size_t path_len, goto out; } - volid_ptr = strstr(volume_id, "tierd/"); - if (volid_ptr) { - volid_ptr = strchr(volid_ptr, '/'); - if (!volid_ptr) { - ret = -1; - goto out; - } - volid_ptr++; - - ret = glusterd_volinfo_find(volid_ptr, &volinfo); - if (ret == -1) { - gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_VOLINFO_GET_FAIL, - "Couldn't find volinfo"); - goto out; - } - glusterd_svc_build_tierd_volfile_path(volinfo, path, path_len); - ret = 0; - goto out; - } - volid_ptr = strstr(volume_id, "gluster/"); if (volid_ptr) { volid_ptr = strchr(volid_ptr, '/'); |