Save the database with the new propagator

This commit is contained in:
Olivier Goffart 2013-08-21 15:42:03 +02:00
parent 3a57eb1b54
commit ef1a47a5a2

View File

@ -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);