1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

use CTDB_CONTROL_TRANS2_COMMIT_RETRY to prevent the counter getting

out of sync
(This used to be commit 571ec7893c)
This commit is contained in:
Andrew Tridgell 2008-08-08 13:12:16 +10:00 committed by Michael Adam
parent 55de7c1748
commit ca64c340c7

View File

@ -646,8 +646,9 @@ again:
/* tell ctdbd to commit to the other nodes */
rets = ctdbd_control_local(messaging_ctdbd_connection(),
CTDB_CONTROL_TRANS2_COMMIT, h->ctx->db_id, 0,
db_ctdb_marshall_finish(h->m_write), NULL, NULL, &status);
retries==0?CTDB_CONTROL_TRANS2_COMMIT:CTDB_CONTROL_TRANS2_COMMIT_RETRY,
h->ctx->db_id, 0,
db_ctdb_marshall_finish(h->m_write), NULL, NULL, &status);
if (!NT_STATUS_IS_OK(rets) || status != 0) {
tdb_transaction_cancel(h->ctx->wtdb->tdb);
sleep(1);