summaryrefslogtreecommitdiff
path: root/src/mongo/util/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/file.cpp')
-rw-r--r--src/mongo/util/file.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/mongo/util/file.cpp b/src/mongo/util/file.cpp
index bcb4b74e989..1d55b4d51b6 100644
--- a/src/mongo/util/file.cpp
+++ b/src/mongo/util/file.cpp
@@ -136,10 +136,14 @@ void File::read(fileofs o, char* data, unsigned len) {
} else if (bytesRead != len) {
_bad = true;
msgasserted(10438,
- mongoutils::str::stream()
- << "In File::read(), ReadFile for '" << _name << "' read " << bytesRead
- << " bytes while trying to read " << len << " bytes starting at offset "
- << o << ", truncated file?");
+ mongoutils::str::stream() << "In File::read(), ReadFile for '" << _name
+ << "' read "
+ << bytesRead
+ << " bytes while trying to read "
+ << len
+ << " bytes starting at offset "
+ << o
+ << ", truncated file?");
}
}
@@ -259,10 +263,14 @@ void File::read(fileofs o, char* data, unsigned len) {
} else if (bytesRead != static_cast<ssize_t>(len)) {
_bad = true;
msgasserted(16569,
- mongoutils::str::stream()
- << "In File::read(), ::pread for '" << _name << "' read " << bytesRead
- << " bytes while trying to read " << len << " bytes starting at offset "
- << o << ", truncated file?");
+ mongoutils::str::stream() << "In File::read(), ::pread for '" << _name
+ << "' read "
+ << bytesRead
+ << " bytes while trying to read "
+ << len
+ << " bytes starting at offset "
+ << o
+ << ", truncated file?");
}
}