summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/kv
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2022-06-22 23:36:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-01 17:29:53 +0000
commit66cfb62d4cfc608e7fc909a3f0ea35d7a4ab6c4e (patch)
tree41a9949ac26c1fee3a78f8aa5b8ff22b64f0818a /src/mongo/db/storage/kv
parent2b3679dcc3169be90f82adbd4d4eff0da7be934e (diff)
downloadmongo-66cfb62d4cfc608e7fc909a3f0ea35d7a4ab6c4e.tar.gz
SERVER-67384 Use correct code path for creating column indexes
Diffstat (limited to 'src/mongo/db/storage/kv')
-rw-r--r--src/mongo/db/storage/kv/kv_drop_pending_ident_reaper_test.cpp9
-rw-r--r--src/mongo/db/storage/kv/kv_engine.h5
2 files changed, 14 insertions, 0 deletions
diff --git a/src/mongo/db/storage/kv/kv_drop_pending_ident_reaper_test.cpp b/src/mongo/db/storage/kv/kv_drop_pending_ident_reaper_test.cpp
index 8646a6ba78c..46298a87a78 100644
--- a/src/mongo/db/storage/kv/kv_drop_pending_ident_reaper_test.cpp
+++ b/src/mongo/db/storage/kv/kv_drop_pending_ident_reaper_test.cpp
@@ -70,6 +70,15 @@ public:
const IndexDescriptor* desc) override {
return nullptr;
}
+
+ Status createColumnStore(OperationContext* opCtx,
+ const NamespaceString& ns,
+ const CollectionOptions& collOptions,
+ StringData ident,
+ const IndexDescriptor* desc) override {
+ MONGO_UNREACHABLE;
+ }
+
std::unique_ptr<ColumnStore> getColumnStore(OperationContext* opCtx,
const NamespaceString& nss,
const CollectionOptions& collOptions,
diff --git a/src/mongo/db/storage/kv/kv_engine.h b/src/mongo/db/storage/kv/kv_engine.h
index d2439f86eab..01bb7560151 100644
--- a/src/mongo/db/storage/kv/kv_engine.h
+++ b/src/mongo/db/storage/kv/kv_engine.h
@@ -129,6 +129,11 @@ public:
const CollectionOptions& collOptions,
StringData ident,
const IndexDescriptor* desc) = 0;
+ virtual Status createColumnStore(OperationContext* opCtx,
+ const NamespaceString& ns,
+ const CollectionOptions& collOptions,
+ StringData ident,
+ const IndexDescriptor* desc) = 0;
/**
* Similar to createSortedDataInterface but this imports from an existing table with the