diff options
author | Aaron <aaron@10gen.com> | 2009-04-15 15:39:49 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-04-15 15:39:49 -0400 |
commit | 9ccebf3f4c00543809d8951b803ae2dd93b9db35 (patch) | |
tree | 0d17dc909bb50e1cb838e88fc517ab65a5ecd874 /util/file_allocator.h | |
parent | 836e92e7ddc2bdd090e7cffa3ab039c9f9c0bc50 (diff) | |
download | mongo-9ccebf3f4c00543809d8951b803ae2dd93b9db35.tar.gz |
Revert "abort allocation on failed write"
This reverts commit c511cb61394bbfcebf72a1e8b7e03261acd3be80.
Diffstat (limited to 'util/file_allocator.h')
-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 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; |