[sheepdog] [PATCH v2 08/11] gateway: don't skip start_recovery for gateway-only node

Liu Yuan namei.unix at gmail.com
Mon May 27 08:23:00 CEST 2013


Gateway node needs to notify completion to other nodes to purge stale objects.

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 sheep/recovery.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/sheep/recovery.c b/sheep/recovery.c
index ab99244..21d76e2 100644
--- a/sheep/recovery.c
+++ b/sheep/recovery.c
@@ -782,9 +782,6 @@ int start_recovery(struct vnode_info *cur_vinfo, struct vnode_info *old_vinfo,
 	struct recovery_info *rinfo;
 	uint32_t old_epoch = epoch_lifted ? sys->epoch - 1 : sys->epoch;
 
-	if (node_is_gateway_only())
-		goto out;
-
 	rinfo = xzalloc(sizeof(struct recovery_info));
 	rinfo->state = RW_PREPARE_LIST;
 	rinfo->epoch = sys->epoch;
@@ -812,7 +809,6 @@ int start_recovery(struct vnode_info *cur_vinfo, struct vnode_info *old_vinfo,
 		main_thread_set(current_rinfo, rinfo);
 		queue_recovery_work(rinfo);
 	}
-out:
 	wakeup_requests_on_epoch();
 	return 0;
 }
-- 
1.7.9.5




More information about the sheepdog mailing list