summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog/type_collection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/catalog/type_collection.cpp')
-rw-r--r--src/mongo/s/catalog/type_collection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/catalog/type_collection.cpp b/src/mongo/s/catalog/type_collection.cpp
index 9656daf9886..9fbfb824add 100644
--- a/src/mongo/s/catalog/type_collection.cpp
+++ b/src/mongo/s/catalog/type_collection.cpp
@@ -163,7 +163,7 @@ namespace mongo {
return Status(ErrorCodes::BadValue, "invalid epoch");
}
- if (!_updatedAt.get()) {
+ if (Date_t() == _updatedAt.get()) {
return Status(ErrorCodes::BadValue, "invalid updated at timestamp");
}
@@ -183,7 +183,7 @@ namespace mongo {
builder.append(fullNs.name(), _fullNs.get_value_or(""));
builder.append(epoch.name(), _epoch.get_value_or(OID()));
- builder.append(updatedAt.name(), _updatedAt.get_value_or(0));
+ builder.append(updatedAt.name(), _updatedAt.get_value_or(Date_t()));
// These fields are optional, so do not include them in the metadata for the purposes of
// consuming less space on the config servers.