diff options
Diffstat (limited to 'src/mongo/base/data_type.cpp')
-rw-r--r-- | src/mongo/base/data_type.cpp | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/mongo/base/data_type.cpp b/src/mongo/base/data_type.cpp index 1ffcc3b677d..dc799a1c503 100644 --- a/src/mongo/base/data_type.cpp +++ b/src/mongo/base/data_type.cpp @@ -31,20 +31,18 @@ namespace mongo { - Status DataType::makeTrivialLoadStatus(size_t sizeOfT, size_t length, - size_t debug_offset) { - mongoutils::str::stream ss; - ss << "buffer size too small to read (" << sizeOfT << ") bytes out of buffer[" - << length << "] at offset: " << debug_offset; - return Status(ErrorCodes::Overflow, ss); - } +Status DataType::makeTrivialLoadStatus(size_t sizeOfT, size_t length, size_t debug_offset) { + mongoutils::str::stream ss; + ss << "buffer size too small to read (" << sizeOfT << ") bytes out of buffer[" << length + << "] at offset: " << debug_offset; + return Status(ErrorCodes::Overflow, ss); +} - Status DataType::makeTrivialStoreStatus(size_t sizeOfT, size_t length, - size_t debug_offset) { - mongoutils::str::stream ss; - ss << "buffer size too small to write (" << sizeOfT << ") bytes into buffer[" - << length << "] at offset: " << debug_offset; - return Status(ErrorCodes::Overflow, ss); - } +Status DataType::makeTrivialStoreStatus(size_t sizeOfT, size_t length, size_t debug_offset) { + mongoutils::str::stream ss; + ss << "buffer size too small to write (" << sizeOfT << ") bytes into buffer[" << length + << "] at offset: " << debug_offset; + return Status(ErrorCodes::Overflow, ss); +} } // namespace mongo |