[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/5] libxl: colo: simplify colo_proxy_async_wait_for_checkpoint
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libxl/libxl_colo_save.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/libxl/libxl_colo_save.c b/tools/libxl/libxl_colo_save.c index e2fdc4b..26b3afd 100644 --- a/tools/libxl/libxl_colo_save.c +++ b/tools/libxl/libxl_colo_save.c @@ -533,11 +533,11 @@ static void colo_proxy_async_wait_for_checkpoint(libxl__colo_save_state *css) if (req < 0) { /* some error happens */ _exit(1); - } else if (!req) { - /* no checkpoint is needed, do a checkpoint every 5s */ - _exit(0); } else { - /* net packets is not consistent, we need to start a checkpoint */ + /* req == 0: no checkpoint is needed, do a checkpoint every 5s */ + /* req > 0: net packets is not consistent, we need to start a + * checkpoint + */ _exit(0); } } -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |