diff options
Diffstat (limited to 'src/mongo/db/timeseries/timeseries_global_options.h')
| -rw-r--r-- | src/mongo/db/timeseries/timeseries_global_options.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/db/timeseries/timeseries_global_options.h b/src/mongo/db/timeseries/timeseries_global_options.h index a2c958a10ec..2e13432e8e9 100644 --- a/src/mongo/db/timeseries/timeseries_global_options.h +++ b/src/mongo/db/timeseries/timeseries_global_options.h @@ -29,7 +29,6 @@ #pragma once -#include "mongo/base/status.h" #include "mongo/platform/atomic_word.h" namespace mongo { @@ -37,15 +36,4 @@ namespace mongo { extern AtomicWord<long long> gTimeseriesIdleBucketExpiryMemoryUsageThresholdBytes; uint64_t getTimeseriesIdleBucketExpiryMemoryUsageThresholdBytes(); -/** - * Checks the time or the meta field doesn't contain embedded null bytes. - */ -inline Status validateTimeAndMetaField(const std::string& str) { - if (str.find('\0') != std::string::npos) { - return Status(ErrorCodes::BadValue, - "The 'timeField' or the 'metaField' cannot contain embedded null bytes"); - } - return Status::OK(); -} - } // namespace mongo |
