1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

ctdb-daemon: Reset push_started flag once DB_PUSH_CONFIRM is done

Once DB_PUSH_START is processed as part of recovery, push_started
flag tracks if there are multiple attempts to send DB_PUSH_START.
In DB_PUSH_CONFIRM, once the record count is confirmed, all information
related to DB_PUSH should be reset.  However, The push_started flag was
not reset when the push_state was reset.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Wed Jun  8 14:31:52 CEST 2016 on sn-devel-144
This commit is contained in:
Amitay Isaacs 2016-06-08 15:04:52 +10:00 committed by Amitay Isaacs
parent ecb74721e7
commit c620bf5deb

View File

@ -744,6 +744,7 @@ int32_t ctdb_control_db_push_confirm(struct ctdb_context *ctdb,
outdata->dsize = sizeof(uint32_t);
talloc_free(state);
ctdb_db->push_started = false;
ctdb_db->push_state = NULL;
return 0;