summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-11-08 21:28:15 -0500
committerEliot Horowitz <eliot@10gen.com>2013-11-09 00:18:39 -0500
commit08e3c3597ffa2d301c2be9a05e455cbd839e4bf5 (patch)
tree2f4356915caaf9c04ce34543d66bf79505bfe547 /src/mongo/db/curop.h
parent55d9adbec9de4bcbeda165bb910c898ab07c45eb (diff)
downloadmongo-08e3c3597ffa2d301c2be9a05e455cbd839e4bf5.tar.gz
SERVER-9469: more efficiently set ns in CurOp
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 9a5e98ed726..3632a52d72b 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -302,6 +302,13 @@ namespace mongo {
void setKillWaiterFlags();
/**
+ * this should be used very sparingly
+ * generally the Context should set this up
+ * but sometimes you want to do it ahead of time
+ */
+ void setNS( const StringData& ns );
+
+ /**
* Find a currently running operation matching the given criteria. This assumes that you're
* going to kill the operation, so it must be called multiple times to get multiple matching
* operations.