summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/delete.h
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2016-04-21 15:55:32 -0400
committerJames Wahlin <james.wahlin@10gen.com>2016-04-21 16:48:06 -0400
commitdc3d30af10b6859124d1ce8790ad8e097d1f06c7 (patch)
tree4cf90aec523a535c5974007a08fcc95e0f8528bb /src/mongo/db/exec/delete.h
parent1a371955e7a93f846a5ddddb19f33d6b270a3991 (diff)
downloadmongo-dc3d30af10b6859124d1ce8790ad8e097d1f06c7.tar.gz
SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD ops
Diffstat (limited to 'src/mongo/db/exec/delete.h')
-rw-r--r--src/mongo/db/exec/delete.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/exec/delete.h b/src/mongo/db/exec/delete.h
index 9a71c597e63..5c2435a2122 100644
--- a/src/mongo/db/exec/delete.h
+++ b/src/mongo/db/exec/delete.h
@@ -35,6 +35,7 @@
namespace mongo {
class CanonicalQuery;
+class OpDebug;
class OperationContext;
class PlanExecutor;
@@ -44,7 +45,8 @@ struct DeleteStageParams {
fromMigrate(false),
isExplain(false),
returnDeleted(false),
- canonicalQuery(nullptr) {}
+ canonicalQuery(nullptr),
+ opDebug(nullptr) {}
// Should we delete all documents returned from the child (a "multi delete"), or at most one
// (a "single delete")?
@@ -65,6 +67,9 @@ struct DeleteStageParams {
// The user-requested sort specification. Currently used just for findAndModify.
BSONObj sort;
+
+ // Optional. When not null, delete metrics are recorded here.
+ OpDebug* opDebug;
};
/**