[sheepdog] [PATCH 1/2] sheep: reload config after successful migration

Hitoshi Mitake mitake.hitoshi at gmail.com
Sun Mar 2 15:50:04 CET 2014


Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
 sheep/config.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sheep/config.c b/sheep/config.c
index 22c6cfe..001fa0a 100644
--- a/sheep/config.c
+++ b/sheep/config.c
@@ -107,16 +107,19 @@ int init_config_file(void)
 					sd_err("failed to reload config file,"
 					       " %m");
 					ret = -1;
+					goto out;
 				} else
 					ret = 0;
 			}
-			goto out;
+			goto reload;
 		}
 
 		sd_err("use '-u' option to upgrade sheep store");
 		ret = -1;
 		goto out;
 	}
+
+reload:
 	ret = 0;
 	get_cluster_config(&sys->cinfo);
 out:
-- 
1.8.3.2




More information about the sheepdog mailing list