diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2018-10-23 11:50:37 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-10-23 10:54:47 +0000 |
commit | bd4d8b182662e08cccc57efa1616651df448b445 (patch) | |
tree | 211df632a4eaf9706ca52bafe91d7f87ea01f67c /xlators/mgmt | |
parent | 874ce6ef6e33f1493c888760714503ac992b708d (diff) |
glusterd: improve logging for stage_deleted flag
Change-Id: I5f0667a47ddd24cb00949c875c19f3d1dbd8d603
fixes: bz#1605077
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-locks.c | 4 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-locks.c b/xlators/mgmt/glusterd/src/glusterd-locks.c index 981d6c4442d..b21da601d8c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-locks.c +++ b/xlators/mgmt/glusterd/src/glusterd-locks.c @@ -867,6 +867,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 a6561e101d5..101ce0159cb 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -1907,6 +1907,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: |