glusterfs/0406-glusterd-improve-logging-for-stage_deleted-flag.patch
Milind Changire 8c854898e7 autobuild v3.12.2-24
Resolves: bz#1618221 bz#1641489
Signed-off-by: Milind Changire <mchangir@redhat.com>
2018-10-23 08:16:01 -04:00

56 lines
2.2 KiB
Diff

From 33c75991d92229dc65b24535b8f1d7194b23beb6 Mon Sep 17 00:00:00 2001
From: Sanju Rakonde <srakonde@redhat.com>
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 <srakonde@redhat.com>
upstream patch: https://review.gluster.org/#/c/glusterfs/+/21463/
Change-Id: I5f0667a47ddd24cb00949c875c19f3d1dbd8d603
BUG: 1618221
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/153671
Tested-by: RHGS Build Bot <nigelb@redhat.com>
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
---
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