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/replication_recovery.cpp | |
parent | ecfdeb1bbe8979586bd841a07f47de748c1b4094 (diff) | |
download | mongo-28c94950e960688fa6f7ac8af12c32c8e9e8ed9c.tar.gz |
SERVER-29898 Change StorageEngine args to ServiceContext args
Diffstat (limited to 'src/mongo/db/repl/replication_recovery.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_recovery.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/repl/replication_recovery.cpp b/src/mongo/db/repl/replication_recovery.cpp index 8042674d358..7a7597642eb 100644 --- a/src/mongo/db/repl/replication_recovery.cpp +++ b/src/mongo/db/repl/replication_recovery.cpp @@ -92,9 +92,8 @@ void ReplicationRecoveryImpl::recoverFromOplog(OperationContext* opCtx) try { if (!checkpointTimestamp.isNull()) { // If we have a checkpoint timestamp, we set the initial data timestamp now so that // the operations we apply below can be given the proper timestamps. - _storageInterface->setInitialDataTimestamp( - opCtx->getServiceContext()->getGlobalStorageEngine(), - SnapshotName(checkpointTimestamp)); + _storageInterface->setInitialDataTimestamp(opCtx->getServiceContext(), + SnapshotName(checkpointTimestamp)); } // If we don't have a checkpoint timestamp, then we are either not running a storage engine @@ -105,9 +104,8 @@ void ReplicationRecoveryImpl::recoverFromOplog(OperationContext* opCtx) try { // oplog. ON_BLOCK_EXIT([&] { if (checkpointTimestamp.isNull() && topOfOplog) { - _storageInterface->setInitialDataTimestamp( - opCtx->getServiceContext()->getGlobalStorageEngine(), - SnapshotName(topOfOplog->getTimestamp())); + _storageInterface->setInitialDataTimestamp(opCtx->getServiceContext(), + SnapshotName(topOfOplog->getTimestamp())); } }); |