diff options
author | Rui Liu <rui.liu@mongodb.com> | 2022-07-19 12:38:59 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-19 13:08:40 +0000 |
commit | 24d4538ef2c52ae81455849ca37b40ed51fcc38c (patch) | |
tree | 462e31ab7d8ab6a8f6c284c4a63b8c01f771b854 | |
parent | 4af213f08a582a90534f5f98a9cb1d0976e4945b (diff) | |
download | mongo-24d4538ef2c52ae81455849ca37b40ed51fcc38c.tar.gz |
SERVER-68127 Correct the field name in the error reporting of collMod parsing
-rw-r--r-- | src/mongo/db/catalog/coll_mod.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/coll_mod.cpp b/src/mongo/db/catalog/coll_mod.cpp index e731c39c0db..dc2ef9b5763 100644 --- a/src/mongo/db/catalog/coll_mod.cpp +++ b/src/mongo/db/catalog/coll_mod.cpp @@ -542,7 +542,7 @@ StatusWith<std::pair<ParsedCollModRequest, BSONObj>> parseCollModRequest(Operati if (auto& timeseries = cmr.getTimeseries()) { parsed.numModifications++; if (!isTimeseries) { - return getOnlySupportedOnTimeseriesError(CollMod::kIsTimeseriesNamespaceFieldName); + return getOnlySupportedOnTimeseriesError(CollMod::kTimeseriesFieldName); } BSONObjBuilder subObjBuilder(oplogEntryBuilder.subobjStart(CollMod::kTimeseriesFieldName)); |