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/commands/collection_to_capped.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/commands/collection_to_capped.cpp')
-rw-r--r-- | src/mongo/db/commands/collection_to_capped.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/collection_to_capped.cpp b/src/mongo/db/commands/collection_to_capped.cpp index 6639b4b7dd8..0ed6f1bc15d 100644 --- a/src/mongo/db/commands/collection_to_capped.cpp +++ b/src/mongo/db/commands/collection_to_capped.cpp @@ -80,7 +80,7 @@ namespace mongo { // datasize and extentSize can't be compared exactly, so add some padding to 'size' long long excessSize = static_cast<long long>( fromCollection->dataSize() - - ( toCollection->storageSize() * 2 ) ); + ( toCollection->getRecordStore()->storageSize() * 2 ) ); scoped_ptr<Runner> runner( InternalPlanner::collectionScan(fromNs, fromCollection, |