diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-08-22 14:13:33 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-08-24 10:40:43 -0400 |
commit | f7c2600036ce876bb389f3eb3adc8eada6932d8b (patch) | |
tree | 0839d44ceee332dd42505327d172be292f200fb7 /src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | |
parent | 375b524f3b8ee824ab7d9f52fd766b3af7fbbb80 (diff) | |
download | mongo-f7c2600036ce876bb389f3eb3adc8eada6932d8b.tar.gz |
SERVER-35616 Do not allow afterClusterTime reads before oplog exists
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp index 322f445a9a8..a640cf33987 100644 --- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp @@ -475,6 +475,7 @@ void ReplicationCoordinatorExternalStateImpl::waitForAllEarlierOplogWritesToBeVi AutoGetCollection oplogLock(opCtx, NamespaceString::kRsOplogNamespace, MODE_IS); oplog = oplogLock.getCollection(); } + uassert(ErrorCodes::NotYetInitialized, "The oplog does not exist", oplog); oplog->getRecordStore()->waitForAllEarlierOplogWritesToBeVisible(opCtx); } |