diff options
author | Josef Ahmad <josef.ahmad@mongodb.com> | 2021-12-01 09:17:15 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-01 09:42:25 +0000 |
commit | 1858238ec9d0cd4924c94a3f274a514c589f1154 (patch) | |
tree | 38fbb3393186325ba561e451c494510ca4ac06bb /src/mongo/db/storage/record_store_test_harness.h | |
parent | 630b966f4d6f502aeb30ff4706da60862a2f2b12 (diff) | |
download | mongo-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/record_store_test_harness.h')
-rw-r--r-- | src/mongo/db/storage/record_store_test_harness.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/storage/record_store_test_harness.h b/src/mongo/db/storage/record_store_test_harness.h index 9863d22f821..a7d89080301 100644 --- a/src/mongo/db/storage/record_store_test_harness.h +++ b/src/mongo/db/storage/record_store_test_harness.h @@ -52,7 +52,9 @@ public: } virtual std::unique_ptr<RecordStore> newNonCappedRecordStore( - const std::string& ns, const CollectionOptions& options) = 0; + const std::string& ns, + const CollectionOptions& options, + KeyFormat keyFormat = KeyFormat::Long) = 0; virtual std::unique_ptr<RecordStore> newOplogRecordStore() = 0; |