From ef1a47a5a2f5dbe046fe4624ebf4e046871da4ab Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 21 Aug 2013 15:42:03 +0200 Subject: [PATCH] Save the database with the new propagator --- src/csync.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/csync.c b/src/csync.c index af7ca61642..2ea898c4c3 100644 --- a/src/csync.c +++ b/src/csync.c @@ -832,6 +832,10 @@ int csync_commit(CSYNC *ctx) { return -1; } + /* We need to save the database even if another propagator was run */ + if (ctx->status_code == CSYNC_STATUS_OK && ctx->status & CSYNC_STATUS_RECONCILE) + ctx->status = CSYNC_STATUS_DONE; + ctx->status_code = CSYNC_STATUS_OK; rc = _merge_and_write_statedb(ctx);