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