diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-05-25 15:43:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-25 16:18:08 +0000 |
commit | 80e519f931ee0339b34e2546d274e21499e437b6 (patch) | |
tree | 4faab13bb94c6d37ff84467cbf81ce5050d7ec0c /src/mongo/db/repl/tenant_oplog_applier_test.cpp | |
parent | 982ba2296ba7e5a9f53e8f36d14310f0f45b7b70 (diff) | |
download | mongo-80e519f931ee0339b34e2546d274e21499e437b6.tar.gz |
SERVER-66565 Use hint with config.transactions partial index and allow creating it
Diffstat (limited to 'src/mongo/db/repl/tenant_oplog_applier_test.cpp')
-rw-r--r-- | src/mongo/db/repl/tenant_oplog_applier_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/repl/tenant_oplog_applier_test.cpp b/src/mongo/db/repl/tenant_oplog_applier_test.cpp index 3cdc4d04e26..4215b04043a 100644 --- a/src/mongo/db/repl/tenant_oplog_applier_test.cpp +++ b/src/mongo/db/repl/tenant_oplog_applier_test.cpp @@ -34,6 +34,7 @@ #include <boost/optional/optional_io.hpp> #include <vector> +#include "mongo/db/dbdirectclient.h" #include "mongo/db/logical_session_id_helpers.h" #include "mongo/db/op_observer_noop.h" #include "mongo/db/op_observer_registry.h" @@ -49,6 +50,7 @@ #include "mongo/db/repl/tenant_oplog_batcher.h" #include "mongo/db/service_context_d_test_fixture.h" #include "mongo/db/service_context_test_fixture.h" +#include "mongo/db/session_catalog_mongod.h" #include "mongo/db/tenant_id.h" #include "mongo/executor/thread_pool_task_executor_test_fixture.h" #include "mongo/logv2/log.h" @@ -346,6 +348,11 @@ TEST_F(TenantOplogApplierTest, NoOpsForLargeTransaction) { TEST_F(TenantOplogApplierTest, CommitUnpreparedTransaction_DataPartiallyApplied) { createCollectionWithUuid(_opCtx.get(), NamespaceString::kSessionTransactionsTableNamespace); + { + DBDirectClient client(_opCtx.get()); + client.createIndexes(NamespaceString::kSessionTransactionsTableNamespace.ns(), + {MongoDSessionCatalog::getConfigTxnPartialIndexSpec()}); + } NamespaceString nss(_dbName, "bar"); auto uuid = createCollectionWithUuid(_opCtx.get(), nss); auto lsid = makeLogicalSessionId(_opCtx.get()); |