summaryrefslogtreecommitdiff
path: root/src/mongo/db/structure/record_store_v1_capped.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-03-31 11:11:15 -0400
committerEliot Horowitz <eliot@10gen.com>2014-04-03 13:31:49 -0400
commitc50dcd3109d76d85c90e5786d5fe7aec73c4f8de (patch)
treebacd75f0e397e571800f45ca187f8a2b00d9cc56 /src/mongo/db/structure/record_store_v1_capped.h
parent5234c5739a3dfbba1a831b6b818b29a1e9ec4f0d (diff)
downloadmongo-c50dcd3109d76d85c90e5786d5fe7aec73c4f8de.tar.gz
SERVER-13084: remove NamespaceDetails::emptyCappedCollection and replace with Collection::truncate
Diffstat (limited to 'src/mongo/db/structure/record_store_v1_capped.h')
-rw-r--r--src/mongo/db/structure/record_store_v1_capped.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/structure/record_store_v1_capped.h b/src/mongo/db/structure/record_store_v1_capped.h
index 5b4e9fc056d..0ce454e6812 100644
--- a/src/mongo/db/structure/record_store_v1_capped.h
+++ b/src/mongo/db/structure/record_store_v1_capped.h
@@ -49,6 +49,8 @@ namespace mongo {
virtual ~CappedRecordStoreV1();
+ virtual Status truncate();
+
protected:
virtual StatusWith<DiskLoc> allocRecord( int lengthWithHeaders, int quotaMax );