diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-03-26 12:58:35 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-03-26 12:58:52 -0400 |
commit | bd6d0c99195e324e14390205e2bc6ff88c01e365 (patch) | |
tree | f9306b37b7d3302b4dd6e5f628fcf9886a09cf15 /src/mongo/util/file.h | |
parent | a56eef7bd9a5d390182ea64118e11420b052a380 (diff) | |
download | mongo-bd6d0c99195e324e14390205e2bc6ff88c01e365.tar.gz |
replace assert with verify SERVER-1259
Diffstat (limited to 'src/mongo/util/file.h')
-rw-r--r-- | src/mongo/util/file.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/file.h b/src/mongo/util/file.h index 368e6927b43..410c20d3651 100644 --- a/src/mongo/util/file.h +++ b/src/mongo/util/file.h @@ -45,13 +45,13 @@ namespace mongo { bool bad() {return false;} bool is_open() {return false;} fileofs len() { return 0; } - void fsync() { assert(false); } + void fsync() { verify(false); } // shrink file to size bytes. No-op if file already smaller. void truncate(fileofs size); /** @return -1 if error or unavailable */ - static boost::intmax_t freeSpace(const string &path) { assert(false); return -1; } + static boost::intmax_t freeSpace(const string &path) { verify(false); return -1; } }; #if defined(_WIN32) @@ -210,7 +210,7 @@ namespace mongo { void fsync() { ::fsync(fd); } static boost::intmax_t freeSpace ( const string &path ) { struct statvfs info; - assert( !statvfs( path.c_str() , &info ) ); + verify( !statvfs( path.c_str() , &info ) ); return boost::intmax_t( info.f_bavail ) * info.f_frsize; } |