|
|
f338ef |
From bc5e3967864d6f6ea22deb22ba72aedca8367797 Mon Sep 17 00:00:00 2001
|
|
|
f338ef |
From: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
f338ef |
Date: Thu, 11 Jul 2019 12:49:41 +0530
|
|
|
f338ef |
Subject: [PATCH 246/255] Revert "glusterd/shd: Keep a ref on volinfo until
|
|
|
f338ef |
attach rpc execute cbk"
|
|
|
f338ef |
|
|
|
f338ef |
This reverts commit c429d3c63601e6ea15af76aa684c30bbeb746467.
|
|
|
f338ef |
|
|
|
f338ef |
BUG: 1471742
|
|
|
f338ef |
Change-Id: I614e8bdbcc5111dbf407aba047e7d2284bef8ac8
|
|
|
f338ef |
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
f338ef |
Reviewed-on: https://code.engineering.redhat.com/gerrit/175955
|
|
|
f338ef |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
f338ef |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
f338ef |
---
|
|
|
f338ef |
xlators/mgmt/glusterd/src/glusterd-shd-svc.c | 3 ---
|
|
|
f338ef |
xlators/mgmt/glusterd/src/glusterd-svc-helper.c | 4 ----
|
|
|
f338ef |
2 files changed, 7 deletions(-)
|
|
|
f338ef |
|
|
|
f338ef |
diff --git a/xlators/mgmt/glusterd/src/glusterd-shd-svc.c b/xlators/mgmt/glusterd/src/glusterd-shd-svc.c
|
|
|
f338ef |
index a9eab42..19eca9f 100644
|
|
|
f338ef |
--- a/xlators/mgmt/glusterd/src/glusterd-shd-svc.c
|
|
|
f338ef |
+++ b/xlators/mgmt/glusterd/src/glusterd-shd-svc.c
|
|
|
f338ef |
@@ -452,11 +452,8 @@ glusterd_shdsvc_start(glusterd_svc_t *svc, int flags)
|
|
|
f338ef |
}
|
|
|
f338ef |
|
|
|
f338ef |
if (shd->attached) {
|
|
|
f338ef |
- glusterd_volinfo_ref(volinfo);
|
|
|
f338ef |
- /* Unref will happen from glusterd_svc_attach_cbk */
|
|
|
f338ef |
ret = glusterd_attach_svc(svc, volinfo, flags);
|
|
|
f338ef |
if (ret) {
|
|
|
f338ef |
- glusterd_volinfo_unref(volinfo);
|
|
|
f338ef |
gf_msg("glusterd", GF_LOG_ERROR, 0, GD_MSG_VOLINFO_GET_FAIL,
|
|
|
f338ef |
"Failed to attach shd svc(volume=%s) to pid=%d. Starting"
|
|
|
f338ef |
"a new process",
|
|
|
f338ef |
diff --git a/xlators/mgmt/glusterd/src/glusterd-svc-helper.c b/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
|
|
|
f338ef |
index f7be394..02945b1 100644
|
|
|
f338ef |
--- a/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
|
|
|
f338ef |
+++ b/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
|
|
|
f338ef |
@@ -695,10 +695,6 @@ out:
|
|
|
f338ef |
if (flag) {
|
|
|
f338ef |
GF_FREE(flag);
|
|
|
f338ef |
}
|
|
|
f338ef |
-
|
|
|
f338ef |
- if (volinfo)
|
|
|
f338ef |
- glusterd_volinfo_unref(volinfo);
|
|
|
f338ef |
-
|
|
|
f338ef |
GF_ATOMIC_DEC(conf->blockers);
|
|
|
f338ef |
STACK_DESTROY(frame->root);
|
|
|
f338ef |
return 0;
|
|
|
f338ef |
--
|
|
|
f338ef |
1.8.3.1
|
|
|
f338ef |
|