diff options
author | Blake Oler <blake.oler@mongodb.com> | 2019-06-20 11:50:28 -0400 |
---|---|---|
committer | Blake Oler <blake.oler@mongodb.com> | 2019-06-27 17:31:09 -0400 |
commit | c11b97788fcc91288deac647ddcc11625607d256 (patch) | |
tree | 3c95e51b7ed04c7a7aa94e6ef56a30ec293e0d9e /src/mongo/s/write_ops/batch_write_op.cpp | |
parent | d960519275aba7e6611294903cd2b5156710a73b (diff) | |
download | mongo-c11b97788fcc91288deac647ddcc11625607d256.tar.gz |
SERVER-41676 Convert TransactionRouter to use observer pattern to synchronize internal data
with external observers
Diffstat (limited to 'src/mongo/s/write_ops/batch_write_op.cpp')
-rw-r--r-- | src/mongo/s/write_ops/batch_write_op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/write_ops/batch_write_op.cpp b/src/mongo/s/write_ops/batch_write_op.cpp index 5efce61128d..cc1d18e2f30 100644 --- a/src/mongo/s/write_ops/batch_write_op.cpp +++ b/src/mongo/s/write_ops/batch_write_op.cpp @@ -248,7 +248,7 @@ BatchWriteOp::BatchWriteOp(OperationContext* opCtx, const BatchedCommandRequest& : _opCtx(opCtx), _clientRequest(clientRequest), _batchTxnNum(_opCtx->getTxnNumber()), - _inTransaction(TransactionRouter::get(opCtx) != nullptr) { + _inTransaction(bool(TransactionRouter::get(opCtx))) { _writeOps.reserve(_clientRequest.sizeWriteOps()); for (size_t i = 0; i < _clientRequest.sizeWriteOps(); ++i) { |