diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2021-04-12 06:04:41 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-15 11:11:44 +0000 |
commit | 0502194a53d5a4ed6ac907a8b6481432103ea608 (patch) | |
tree | d37464bd5dd1e55808adc02be2354b17d0490d7b /src/mongo/db/s/sharding_ddl_50_upgrade_downgrade.h | |
parent | 5e620d700d7c7c2b68fe1774bc8f070d47088bf7 (diff) | |
download | mongo-0502194a53d5a4ed6ac907a8b6481432103ea608.tar.gz |
SERVER-56063 Properly serialise the database entries format on transitions between 5.0 and 4.4
Diffstat (limited to 'src/mongo/db/s/sharding_ddl_50_upgrade_downgrade.h')
-rw-r--r-- | src/mongo/db/s/sharding_ddl_50_upgrade_downgrade.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mongo/db/s/sharding_ddl_50_upgrade_downgrade.h b/src/mongo/db/s/sharding_ddl_50_upgrade_downgrade.h index 8f94a935f6f..0244ecb4f28 100644 --- a/src/mongo/db/s/sharding_ddl_50_upgrade_downgrade.h +++ b/src/mongo/db/s/sharding_ddl_50_upgrade_downgrade.h @@ -29,11 +29,20 @@ #pragma once +#include "mongo/db/commands/feature_compatibility_version.h" #include "mongo/s/sharding_ddl_50_upgrade_downgrade_gen.h" namespace mongo { -// TODO SERVER-56063: Add the DatabaseEntryFormat selector +struct DatabaseEntryFormat { + enum Format { + kUUIDOnly, + kUUIDandTimestamp, + }; + + static Format get(const FixedFCVRegion& fcvRegion); +}; + // TODO SERVER-56065: Add the CollectionEntryFormat selector } // namespace mongo |