summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/kv/kv_engine_test_harness.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-02-21 22:13:20 -0500
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-02-21 22:13:23 -0500
commit80b1a54a112b5853d0903ae424ffc5e3bb289077 (patch)
tree3b2cad4010d1deb12a7f91686f5437c48822c896 /src/mongo/db/storage/kv/kv_engine_test_harness.cpp
parent3157be3048cdeb676579ed0d860d8416cb8c4667 (diff)
downloadmongo-80b1a54a112b5853d0903ae424ffc5e3bb289077.tar.gz
SERVER-33359: Allow RTT storage engines to manage indexes on rollback.
Diffstat (limited to 'src/mongo/db/storage/kv/kv_engine_test_harness.cpp')
-rw-r--r--src/mongo/db/storage/kv/kv_engine_test_harness.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp
index bef9943d5c1..4ca06132c0c 100644
--- a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp
+++ b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp
@@ -250,7 +250,8 @@ TEST(KVCatalogTest, Idx1) {
false,
RecordId(),
false,
- KVPrefix::kNotPrefixed));
+ KVPrefix::kNotPrefixed,
+ false));
catalog->putMetaData(&opCtx, "a.b", md);
uow.commit();
}
@@ -279,7 +280,8 @@ TEST(KVCatalogTest, Idx1) {
false,
RecordId(),
false,
- KVPrefix::kNotPrefixed));
+ KVPrefix::kNotPrefixed,
+ false));
catalog->putMetaData(&opCtx, "a.b", md);
uow.commit();
}
@@ -326,7 +328,8 @@ TEST(KVCatalogTest, DirectoryPerDb1) {
false,
RecordId(),
false,
- KVPrefix::kNotPrefixed));
+ KVPrefix::kNotPrefixed,
+ false));
catalog->putMetaData(&opCtx, "a.b", md);
ASSERT_STRING_CONTAINS(catalog->getIndexIdent(&opCtx, "a.b", "foo"), "a/");
ASSERT_TRUE(catalog->isUserDataIdent(catalog->getIndexIdent(&opCtx, "a.b", "foo")));
@@ -370,7 +373,8 @@ TEST(KVCatalogTest, Split1) {
false,
RecordId(),
false,
- KVPrefix::kNotPrefixed));
+ KVPrefix::kNotPrefixed,
+ false));
catalog->putMetaData(&opCtx, "a.b", md);
ASSERT_STRING_CONTAINS(catalog->getIndexIdent(&opCtx, "a.b", "foo"), "index/");
ASSERT_TRUE(catalog->isUserDataIdent(catalog->getIndexIdent(&opCtx, "a.b", "foo")));
@@ -414,7 +418,8 @@ TEST(KVCatalogTest, DirectoryPerAndSplit1) {
false,
RecordId(),
false,
- KVPrefix::kNotPrefixed));
+ KVPrefix::kNotPrefixed,
+ false));
catalog->putMetaData(&opCtx, "a.b", md);
ASSERT_STRING_CONTAINS(catalog->getIndexIdent(&opCtx, "a.b", "foo"), "a/index/");
ASSERT_TRUE(catalog->isUserDataIdent(catalog->getIndexIdent(&opCtx, "a.b", "foo")));
@@ -463,7 +468,8 @@ TEST(KVCatalogTest, RestartForPrefixes) {
false,
RecordId(),
false,
- fooIndexPrefix));
+ fooIndexPrefix,
+ false));
md.prefix = abCollPrefix;
catalog->putMetaData(&opCtx, "a.b", md);
uow.commit();