[sheepdog] [PATCH] cluster/local: fix spurious failure 065
Liu Yuan
namei.unix at gmail.com
Thu Jul 4 11:26:43 CEST 2013
PROCESS_CHECK_INTERVAL is too large on my box that
_kill_sheep 0 # kill the sheep nicely but local driver failed to process event
_start_sheep 0
will be actually executed similar to
_start_sheep 0
_kill_sheep 0
Set it to 50 ms solve the failure on my box.
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
sheep/cluster/local.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sheep/cluster/local.c b/sheep/cluster/local.c
index 572aa19..307a69e 100644
--- a/sheep/cluster/local.c
+++ b/sheep/cluster/local.c
@@ -24,7 +24,7 @@
#include "util.h"
#define MAX_EVENTS 500
-#define PROCESS_CHECK_INTERVAL 200 /* ms */
+#define PROCESS_CHECK_INTERVAL 50 /* ms */
static const char *shmfile = "/tmp/sheepdog_shm";
static int shmfd;
--
1.7.9.5
More information about the sheepdog
mailing list