diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-05-09 13:23:46 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-05-09 16:40:07 -0400 |
commit | 5e60ec670eb67680c08656367e207fa90a80e459 (patch) | |
tree | 1ff49ece591f206aaa92a49b31f41278a91e37c1 /src/mongo/db/catalog/database.cpp | |
parent | dddf68d86a8c12b0e37d8b3ccfdb58623aaba4e3 (diff) | |
download | mongo-5e60ec670eb67680c08656367e207fa90a80e459.tar.gz |
SERVER-13635: pull out interface for deleting records in capped collection during rollover
Diffstat (limited to 'src/mongo/db/catalog/database.cpp')
-rw-r--r-- | src/mongo/db/catalog/database.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/database.cpp b/src/mongo/db/catalog/database.cpp index cc958b7e06e..9495f7d1403 100644 --- a/src/mongo/db/catalog/database.cpp +++ b/src/mongo/db/catalog/database.cpp @@ -746,9 +746,9 @@ namespace mongo { } else if ( options.capped ) { // normal - while ( collection->storageSize() < options.cappedSize ) { + while ( collection->getRecordStore()->storageSize() < options.cappedSize ) { int sz = _massageExtentSize( _extentManager.get(), - options.cappedSize - collection->storageSize() ); + options.cappedSize - collection->getRecordStore()->storageSize() ); sz &= 0xffffff00; collection->increaseStorageSize( txn, sz, true ); } |