summaryrefslogtreecommitdiff
path: root/src/mongo/s/index_version.h
diff options
context:
space:
mode:
authorAllison Easton <allison.easton@mongodb.com>2022-08-24 10:56:33 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-24 11:49:24 +0000
commit3b63216fb7beabecb79d51b291f7f49ac1a8ba1c (patch)
tree9619d651d8f26ebf96a1c2bcc77dd9cf17679c33 /src/mongo/s/index_version.h
parent78b0c96a8643a4ec8cb45f8349aa41b3d86c25de (diff)
downloadmongo-3b63216fb7beabecb79d51b291f7f49ac1a8ba1c.tar.gz
SERVER-69033 Make no-indexes version boost::none instead of Timestamp(0, 0)
Diffstat (limited to 'src/mongo/s/index_version.h')
-rw-r--r--src/mongo/s/index_version.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/index_version.h b/src/mongo/s/index_version.h
index 47756040008..981e9e30207 100644
--- a/src/mongo/s/index_version.h
+++ b/src/mongo/s/index_version.h
@@ -41,14 +41,14 @@ public:
CollectionIndexes(CollectionGeneration generation, boost::optional<Timestamp> index)
: CollectionGeneration(generation), _indexVersion(index) {}
- CollectionIndexes() : CollectionIndexes({OID(), Timestamp()}, {Timestamp()}) {}
+ CollectionIndexes() : CollectionIndexes({OID(), Timestamp()}, boost::none) {}
static CollectionIndexes IGNORED() {
- return CollectionIndexes(CollectionGeneration::IGNORED(), {Timestamp()});
+ return CollectionIndexes(CollectionGeneration::IGNORED(), boost::none);
}
static CollectionIndexes UNSHARDED() {
- return CollectionIndexes(CollectionGeneration::UNSHARDED(), {Timestamp()});
+ return CollectionIndexes(CollectionGeneration::UNSHARDED(), boost::none);
}
boost::optional<Timestamp> indexVersion() const {