diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-08-14 08:56:37 -0400 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-08-14 09:02:31 -0400 |
commit | 5a48f068a4e24a026e18b966ba242473e2c885ad (patch) | |
tree | 4d8f3badff8f1db93d0d61b5709c740a3b239909 /src/mongo/db/storage | |
parent | 7686d0861c54418b644113d3c1dca6552a030a76 (diff) | |
download | mongo-5a48f068a4e24a026e18b966ba242473e2c885ad.tar.gz |
SERVER-42803 Remove unnecessary OperationContext creation logic in the TimestampMonitor
(cherry picked from commit e43a0409e98992d5521749230874eba2d8fe0748)
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r-- | src/mongo/db/storage/storage_engine_impl.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/storage/storage_engine_impl.cpp b/src/mongo/db/storage/storage_engine_impl.cpp index 7573e461f3f..9d0ee9792e6 100644 --- a/src/mongo/db/storage/storage_engine_impl.cpp +++ b/src/mongo/db/storage/storage_engine_impl.cpp @@ -842,11 +842,8 @@ void StorageEngineImpl::_onMinOfCheckpointAndOldestTimestampChanged(const Timest log() << "Removing drop-pending idents with drop timestamps before timestamp " << timestamp; auto opCtx = cc().getOperationContext(); - mongo::ServiceContext::UniqueOperationContext uOpCtx; - if (!opCtx) { - uOpCtx = cc().makeOperationContext(); - opCtx = uOpCtx.get(); - } + invariant(opCtx); + _dropPendingIdentReaper.dropIdentsOlderThan(opCtx, timestamp); } } |