mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
[t:2440] Add commit progress to local checkpoint
git-svn-id: file:///svn/toku/tokudb@19461 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
54ae26e465
commit
6ae9156719
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,7 @@ local_checkpoints_and_log_xcommit(void *thunk) {
|
|||
TOKUTXN txn = info->txn;
|
||||
|
||||
if (!txn->parent && !toku_list_empty(&txn->checkpoint_before_commit)) {
|
||||
toku_poll_txn_progress_function(txn, TRUE, TRUE);
|
||||
//Do local checkpoints that must happen BEFORE logging xcommit
|
||||
uint32_t num_cachefiles = 0;
|
||||
uint32_t list_size = 16;
|
||||
|
@ -153,6 +154,7 @@ local_checkpoints_and_log_xcommit(void *thunk) {
|
|||
|
||||
int r = toku_cachetable_local_checkpoint_for_commit(ct, txn, num_cachefiles, cachefiles);
|
||||
assert(r==0);
|
||||
toku_poll_txn_progress_function(txn, TRUE, FALSE);
|
||||
}
|
||||
|
||||
info->r = toku_log_xcommit(txn->logger, (LSN*)0, info->do_fsync, txn->txnid64); // exits holding neither of the tokulogger locks.
|
||||
|
|
Loading…
Add table
Reference in a new issue