From 7f7d7a939e46b330a084d974451eee4757ba61b4 Mon Sep 17 00:00:00 2001 From: Ryan Ding Date: Tue, 23 Aug 2016 17:28:44 +0800 Subject: features/changelog: fix a bug in changelog_rpc_server_destroy the programe unregister loop never get moved forward, it's a dead loop. to resolve it, add progs++ in the loop. Change-Id: Ib25ded10b3ce808e2fb57b13d767833f24cf01a7 BUG: 1369393 Signed-off-by: Ryan Ding Reviewed-on: https://review.gluster.org/15292 Smoke: Gluster Build System Reviewed-by: Prashanth Pai Tested-by: Kotresh HR Reviewed-by: Kotresh HR CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Jeff Darcy --- xlators/features/changelog/src/changelog-rpc-common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features') diff --git a/xlators/features/changelog/src/changelog-rpc-common.c b/xlators/features/changelog/src/changelog-rpc-common.c index c0744ef6218..08cd41e4f17 100644 --- a/xlators/features/changelog/src/changelog-rpc-common.c +++ b/xlators/features/changelog/src/changelog-rpc-common.c @@ -266,6 +266,7 @@ changelog_rpc_server_destroy (xlator_t *this, rpcsvc_t *rpc, char *sockfile, while (*progs) { prog = *progs; (void) rpcsvc_program_unregister (rpc, prog); + progs++; } list_for_each_entry_safe (listener, next, &rpc->listeners, list) { -- cgit