summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2019-10-03 15:20:20 +0300
committerAmar Tumballi <amarts@gmail.com>2019-10-11 03:55:28 +0000
commit79f69d9b4f3c4fdf77dc77989447b6f1d5d5c658 (patch)
treecbceb02d682d40c69736fa907bcf7669670a685c /xlators/mgmt/glusterd/src
parenteae6f48859b81af32e1570e0b2d7a9033c74ac86 (diff)
glusterd-utils.c: attach_brick() - remove dead code
pidfile1 and pidfile2 were not used anywhere. Removed the assignment and the variables. Change-Id: Ic5fe091ba28bb500c370410a63440953048fd0b7 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 94f6ccf5b55..a33f28a80fe 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -5942,8 +5942,6 @@ attach_brick(xlator_t *this, glusterd_brickinfo_t *brickinfo,
glusterd_volinfo_t *other_vol)
{
glusterd_conf_t *conf = this->private;
- char pidfile1[PATH_MAX] = "";
- char pidfile2[PATH_MAX] = "";
char unslashed[PATH_MAX] = {
'\0',
};
@@ -5963,9 +5961,6 @@ attach_brick(xlator_t *this, glusterd_brickinfo_t *brickinfo,
GLUSTERD_REMOVE_SLASH_FROM_PATH(brickinfo->path, unslashed);
- GLUSTERD_GET_BRICK_PIDFILE(pidfile1, other_vol, other_brick, conf);
- GLUSTERD_GET_BRICK_PIDFILE(pidfile2, volinfo, brickinfo, conf);
-
if (volinfo->is_snap_volume) {
len = snprintf(full_id, sizeof(full_id), "/%s/%s/%s/%s.%s.%s",
GLUSTERD_VOL_SNAP_DIR_PREFIX,