diff options
author | William Schultz <william.schultz@mongodb.com> | 2017-08-17 16:35:07 -0400 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2017-08-17 16:35:07 -0400 |
commit | 28c94950e960688fa6f7ac8af12c32c8e9e8ed9c (patch) | |
tree | 1f6dbac33142d21136cf9bfc8a006e19dc85acb5 /src/mongo/db/repl/storage_interface_impl.cpp | |
parent | ecfdeb1bbe8979586bd841a07f47de748c1b4094 (diff) | |
download | mongo-28c94950e960688fa6f7ac8af12c32c8e9e8ed9c.tar.gz |
SERVER-29898 Change StorageEngine args to ServiceContext args
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp index 1c5fe3f719f..d6c66ad51d9 100644 --- a/src/mongo/db/repl/storage_interface_impl.cpp +++ b/src/mongo/db/repl/storage_interface_impl.cpp @@ -894,18 +894,18 @@ StatusWith<StorageInterface::CollectionCount> StorageInterfaceImpl::getCollectio return collection->numRecords(opCtx); } -void StorageInterfaceImpl::setStableTimestamp(StorageEngine* storageEngine, +void StorageInterfaceImpl::setStableTimestamp(ServiceContext* serviceCtx, SnapshotName snapshotName) { - storageEngine->setStableTimestamp(snapshotName); + serviceCtx->getGlobalStorageEngine()->setStableTimestamp(snapshotName); } -void StorageInterfaceImpl::setInitialDataTimestamp(StorageEngine* storageEngine, +void StorageInterfaceImpl::setInitialDataTimestamp(ServiceContext* serviceCtx, SnapshotName snapshotName) { - storageEngine->setInitialDataTimestamp(snapshotName); + serviceCtx->getGlobalStorageEngine()->setInitialDataTimestamp(snapshotName); } -Status StorageInterfaceImpl::recoverToStableTimestamp(StorageEngine* storageEngine) { - return storageEngine->recoverToStableTimestamp(); +Status StorageInterfaceImpl::recoverToStableTimestamp(ServiceContext* serviceCtx) { + return serviceCtx->getGlobalStorageEngine()->recoverToStableTimestamp(); } Status StorageInterfaceImpl::isAdminDbValid(OperationContext* opCtx) { |