summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/index_descriptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index/index_descriptor.cpp')
-rw-r--r--src/mongo/db/index/index_descriptor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/index/index_descriptor.cpp b/src/mongo/db/index/index_descriptor.cpp
index 3538a4df7c8..08696cd525e 100644
--- a/src/mongo/db/index/index_descriptor.cpp
+++ b/src/mongo/db/index/index_descriptor.cpp
@@ -104,6 +104,10 @@ bool IndexDescriptor::isIndexVersionSupported(IndexVersion indexVersion) {
return false;
}
+std::set<IndexVersion> IndexDescriptor::getSupportedIndexVersions() {
+ return {IndexVersion::kV0, IndexVersion::kV1, IndexVersion::kV2};
+}
+
Status IndexDescriptor::isIndexVersionAllowedForCreation(
IndexVersion indexVersion,
const ServerGlobalParams::FeatureCompatibility& featureCompatibility,