summaryrefslogtreecommitdiff
path: root/src/mongo/db/repair_database.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2014-02-19 14:48:12 -0500
committerEric Milkie <milkie@10gen.com>2014-02-19 15:44:41 -0500
commit3269a5e07acfadd8788294a29a45c9aa4963213c (patch)
tree4c3c6d7f985368845085364e69e24d5320dd1f2d /src/mongo/db/repair_database.cpp
parent7824eac06e596d26165744229c3121af55305534 (diff)
downloadmongo-3269a5e07acfadd8788294a29a45c9aa4963213c.tar.gz
SERVER-8412 clean up intmax_t
Diffstat (limited to 'src/mongo/db/repair_database.cpp')
-rw-r--r--src/mongo/db/repair_database.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/repair_database.cpp b/src/mongo/db/repair_database.cpp
index df22ec051fb..bc4c8b70141 100644
--- a/src/mongo/db/repair_database.cpp
+++ b/src/mongo/db/repair_database.cpp
@@ -128,11 +128,11 @@ namespace mongo {
_applyOpToDataFiles( database, renamer, true );
}
- boost::intmax_t dbSize( const string& database ) {
+ intmax_t dbSize( const string& database ) {
class SizeAccumulator : public FileOp {
public:
SizeAccumulator() : totalSize_( 0 ) {}
- boost::intmax_t size() const {
+ intmax_t size() const {
return totalSize_;
}
private:
@@ -145,7 +145,7 @@ namespace mongo {
virtual const char *op() const {
return "checking size";
}
- boost::intmax_t totalSize_;
+ intmax_t totalSize_;
};
SizeAccumulator sa;
_applyOpToDataFiles( database, sa );
@@ -287,8 +287,8 @@ namespace mongo {
getDur().syncDataAndTruncateJournal(); // Must be done before and after repair
- boost::intmax_t totalSize = dbSize( dbName );
- boost::intmax_t freeSize = File::freeSpace(storageGlobalParams.repairpath);
+ intmax_t totalSize = dbSize( dbName );
+ intmax_t freeSize = File::freeSpace(storageGlobalParams.repairpath);
if ( freeSize > -1 && freeSize < totalSize ) {
return Status( ErrorCodes::OutOfDiskSpace,