diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-04-01 17:22:06 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-04-03 16:48:29 -0400 |
commit | 7575dac4abe7d5c6164b54487a81771cd3aad644 (patch) | |
tree | e74ba01038c58c5c94e6b686e482e9a4fdc88463 /src/mongo/db/s/transaction_coordinator_futures_util.h | |
parent | c4d16e522c18e96114fd3e9b1b71ba835d11c8d7 (diff) | |
download | mongo-7575dac4abe7d5c6164b54487a81771cd3aad644.tar.gz |
SERVER-40297 Make the TransactionCoordinator entirely futures-based
Diffstat (limited to 'src/mongo/db/s/transaction_coordinator_futures_util.h')
-rw-r--r-- | src/mongo/db/s/transaction_coordinator_futures_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/transaction_coordinator_futures_util.h b/src/mongo/db/s/transaction_coordinator_futures_util.h index 1b403d4704d..c378801ea4c 100644 --- a/src/mongo/db/s/transaction_coordinator_futures_util.h +++ b/src/mongo/db/s/transaction_coordinator_futures_util.h @@ -164,6 +164,11 @@ private: const ReadPreferenceSetting& readPref); /** + * Returns true when all the registered child schedulers, op contexts and handles have joined. + */ + bool _quiesced(WithLock) const; + + /** * Invoked every time a registered op context, handle or child scheduler is getting * unregistered. Used to notify the 'all lists empty' condition variable when there is no more * activity on a scheduler which has been shut down. |