Commit da30a643 authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

fixes #5194 don't both grabbing the lock if there's no work to do


git-svn-id: file:///svn/toku/tokudb@45346 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1d592326
......@@ -320,6 +320,12 @@ indexer_fill_prov_info(DB_INDEXER *indexer, struct ule_prov_info *prov_info) {
TOKUTXN_STATE *prov_states = prov_info->prov_states;
TOKUTXN *prov_txns = prov_info->prov_txns;
// don't both grabbing the txn manager lock if we don't
// have any provisional txns to record
if (num_provisional == 0) {
return;
}
// hold the txn manager lock while we inspect txn state
// and pin some live txns
DB_ENV *env = indexer->i->env;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment