diff options
Diffstat (limited to 'src/mongo/db/storage/external_record_store.cpp')
-rw-r--r-- | src/mongo/db/storage/external_record_store.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/storage/external_record_store.cpp b/src/mongo/db/storage/external_record_store.cpp index e63286fbf6a..2a4bb9a8796 100644 --- a/src/mongo/db/storage/external_record_store.cpp +++ b/src/mongo/db/storage/external_record_store.cpp @@ -33,8 +33,10 @@ #include "mongo/db/storage/record_store.h" namespace mongo { +// 'ident' is an identifer to WT table and a virtual collection does not have any persistent data +// in WT. So, we set the "dummy" ident for a virtual collection. ExternalRecordStore::ExternalRecordStore(StringData ns, const VirtualCollectionOptions& vopts) - : RecordStore(ns, /*identName=*/ns, /*isCapped=*/false), _vopts(vopts) {} + : RecordStore(ns, /*identName=*/"dummy"_sd, /*isCapped=*/false), _vopts(vopts) {} /** * Returns a MultiBsonStreamCursor for this record store. Reverse scans are not currently supported @@ -42,7 +44,6 @@ ExternalRecordStore::ExternalRecordStore(StringData ns, const VirtualCollectionO */ std::unique_ptr<SeekableRecordCursor> ExternalRecordStore::getCursor(OperationContext* opCtx, bool forward) const { - if (forward) { return std::make_unique<MultiBsonStreamCursor>(getOptions()); } |