From 33c75991d92229dc65b24535b8f1d7194b23beb6 Mon Sep 17 00:00:00 2001 From: Sanju Rakonde Date: Tue, 23 Oct 2018 11:50:37 +0530 Subject: [PATCH 406/406] glusterd: improve logging for stage_deleted flag > Change-Id: I5f0667a47ddd24cb00949c875c19f3d1dbd8d603 > BUG: bz#1605077 > Signed-off-by: Sanju Rakonde upstream patch: https://review.gluster.org/#/c/glusterfs/+/21463/ Change-Id: I5f0667a47ddd24cb00949c875c19f3d1dbd8d603 BUG: 1618221 Signed-off-by: Sanju Rakonde Reviewed-on: https://code.engineering.redhat.com/gerrit/153671 Tested-by: RHGS Build Bot Reviewed-by: Sunil Kumar Heggodu Gopala Acharya --- xlators/mgmt/glusterd/src/glusterd-locks.c | 4 ++++ xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-locks.c b/xlators/mgmt/glusterd/src/glusterd-locks.c index f4e0225..d75452d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-locks.c +++ b/xlators/mgmt/glusterd/src/glusterd-locks.c @@ -913,6 +913,10 @@ glusterd_mgmt_v3_unlock (const char *name, uuid_t uuid, char *type) * stage_deleted flag is set back to false */ volinfo->stage_deleted = _gf_false; + gf_log(this->name, GF_LOG_INFO, + "Volume %s still exist, setting " + "stage deleted flag to false for the volume %s", + volinfo->volname, volinfo->volname); } ret = 0; out: diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index 94e07cb..36d9bff 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -1829,6 +1829,10 @@ glusterd_op_stage_delete_volume (dict_t *dict, char **op_errstr) goto out; } volinfo->stage_deleted = _gf_true; + gf_log(this->name, GF_LOG_INFO, + "Setting stage deleted flag to true for " + "volume %s", + volinfo->volname); ret = 0; out: -- 1.8.3.1