summaryrefslogtreecommitdiff
path: root/src/mongo/base/data_range.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/base/data_range.cpp')
-rw-r--r--src/mongo/base/data_range.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/mongo/base/data_range.cpp b/src/mongo/base/data_range.cpp
index 08e5f6a56fb..d41a249ce25 100644
--- a/src/mongo/base/data_range.cpp
+++ b/src/mongo/base/data_range.cpp
@@ -31,20 +31,21 @@
namespace mongo {
- Status ConstDataRange::makeOffsetStatus(size_t offset) const {
- str::stream ss;
- ss << "Invalid offset(" << offset << ") past end of buffer[" << length()
- << "] at offset: " << _debug_offset;
+Status ConstDataRange::makeOffsetStatus(size_t offset) const {
+ str::stream ss;
+ ss << "Invalid offset(" << offset << ") past end of buffer[" << length()
+ << "] at offset: " << _debug_offset;
- return Status(ErrorCodes::Overflow, ss);
- }
+ return Status(ErrorCodes::Overflow, ss);
+}
- Status DataRangeTypeHelper::makeStoreStatus(size_t t_length, size_t length,
- std::ptrdiff_t debug_offset) {
- str::stream ss;
- ss << "buffer size too small to write (" << t_length << ") bytes into buffer["
- << length << "] at offset: " << debug_offset;
- return Status(ErrorCodes::Overflow, ss);
- }
+Status DataRangeTypeHelper::makeStoreStatus(size_t t_length,
+ size_t length,
+ std::ptrdiff_t debug_offset) {
+ str::stream ss;
+ ss << "buffer size too small to write (" << t_length << ") bytes into buffer[" << length
+ << "] at offset: " << debug_offset;
+ return Status(ErrorCodes::Overflow, ss);
+}
} // namespace mongo