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/session_catalog_mongod.h | |
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/session_catalog_mongod.h')
-rw-r--r-- | src/mongo/db/session_catalog_mongod.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/session_catalog_mongod.h b/src/mongo/db/session_catalog_mongod.h index a3179683746..eb8402aece4 100644 --- a/src/mongo/db/session_catalog_mongod.h +++ b/src/mongo/db/session_catalog_mongod.h @@ -37,6 +37,14 @@ class SessionsCollection; class MongoDSessionCatalog { public: + static const std::string kConfigTxnsPartialIndexName; + + /** + * Returns the specification for the partial index on config.transactions used to support + * retryable transactions. + */ + static BSONObj getConfigTxnPartialIndexSpec(); + /** * Invoked when the node enters the primary state. Ensures that the transactions collection is * created. Throws on severe exceptions due to which it is not safe to continue the step-up |