summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/capped_callback.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-01-21 18:09:10 -0500
committerMathias Stearn <mathias@10gen.com>2015-01-22 09:38:32 -0500
commit612f66c61c12b705fe3c5ed251d63525f1bf650a (patch)
tree9443be69ea67479b521038fe250ee785b10f3ec7 /src/mongo/db/storage/capped_callback.h
parent34f4776efba9205b9969232bce905f681ac8bac3 (diff)
downloadmongo-612f66c61c12b705fe3c5ed251d63525f1bf650a.tar.gz
SERVER-16919 Improve WT capped collection age-out
* Provide a start cursor to range truncate() * Don't call capped deletion callback for the oplog * Provide backpressure when inserts get ahead of age-out
Diffstat (limited to 'src/mongo/db/storage/capped_callback.h')
-rw-r--r--src/mongo/db/storage/capped_callback.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/storage/capped_callback.h b/src/mongo/db/storage/capped_callback.h
index a86c9e9d2dc..0ee4511f66a 100644
--- a/src/mongo/db/storage/capped_callback.h
+++ b/src/mongo/db/storage/capped_callback.h
@@ -35,6 +35,7 @@
namespace mongo {
class OperationContext;
+ class RecordData;
/**
* When a capped collection has to delete a document, it needs a way to tell the caller
@@ -47,8 +48,12 @@ namespace mongo {
/**
* This will be called right before loc is deleted when wrapping.
+ * If data is unowned, it is only valid inside of this call. If implementations wish to
+ * stash a pointer, they must copy it.
*/
- virtual Status aboutToDeleteCapped( OperationContext* txn, const RecordId& loc ) = 0;
+ virtual Status aboutToDeleteCapped( OperationContext* txn,
+ const RecordId& loc,
+ RecordData data ) = 0;
};
}