summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/devnull/devnull_kv_engine.h
diff options
context:
space:
mode:
authorJosef Ahmad <josef.ahmad@mongodb.com>2021-12-01 09:17:15 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-01 09:42:25 +0000
commit1858238ec9d0cd4924c94a3f274a514c589f1154 (patch)
tree38fbb3393186325ba561e451c494510ca4ac06bb /src/mongo/db/storage/devnull/devnull_kv_engine.h
parent630b966f4d6f502aeb30ff4706da60862a2f2b12 (diff)
downloadmongo-1858238ec9d0cd4924c94a3f274a514c589f1154.tar.gz
SERVER-61441 Improve robustness of clustered record store creation
This patch improves the usability of the internal record store API. * Reject creation of a clustered record store that uses an incompatible WiredTiger key format. * makeTemporaryRecordStore() automatically selects the appropriate WiredTiger key format and cursor settings for clustered record stores.
Diffstat (limited to 'src/mongo/db/storage/devnull/devnull_kv_engine.h')
-rw-r--r--src/mongo/db/storage/devnull/devnull_kv_engine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/storage/devnull/devnull_kv_engine.h b/src/mongo/db/storage/devnull/devnull_kv_engine.h
index 86fac5527af..f866a9340f5 100644
--- a/src/mongo/db/storage/devnull/devnull_kv_engine.h
+++ b/src/mongo/db/storage/devnull/devnull_kv_engine.h
@@ -52,7 +52,8 @@ public:
virtual Status createRecordStore(OperationContext* opCtx,
StringData ns,
StringData ident,
- const CollectionOptions& options) {
+ const CollectionOptions& options,
+ KeyFormat keyFormat = KeyFormat::Long) {
return Status::OK();
}