summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_recovery.cpp
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2017-08-17 16:35:07 -0400
committerWilliam Schultz <william.schultz@mongodb.com>2017-08-17 16:35:07 -0400
commit28c94950e960688fa6f7ac8af12c32c8e9e8ed9c (patch)
tree1f6dbac33142d21136cf9bfc8a006e19dc85acb5 /src/mongo/db/repl/replication_recovery.cpp
parentecfdeb1bbe8979586bd841a07f47de748c1b4094 (diff)
downloadmongo-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.cpp10
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()));
}
});