summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/file_allocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/file_allocator.h b/util/file_allocator.h
index e81de1834a6..14e9aee9c9c 100644
--- a/util/file_allocator.h
+++ b/util/file_allocator.h
@@ -158,10 +158,10 @@ namespace mongo {
int left = size;
while ( 1 ) {
if ( left <= z ) {
- massert( "write failed", left == write(fd, buf, left) );
+ write(fd, buf, left);
break;
}
- massert( "write failed", z == write(fd, buf, z) );
+ write(fd, buf, z);
left -= z;
}
log() << "done allocating datafile " << name << ", size: " << size << ", took " << ((double)t.millis())/1000.0 << " secs" << endl;