diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/file_allocator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/file_allocator.h b/util/file_allocator.h index 14e9aee9c9c..e81de1834a6 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 ) { - write(fd, buf, left); + massert( "write failed", left == write(fd, buf, left) ); break; } - write(fd, buf, z); + massert( "write failed", z == write(fd, buf, z) ); left -= z; } log() << "done allocating datafile " << name << ", size: " << size << ", took " << ((double)t.millis())/1000.0 << " secs" << endl; |