summaryrefslogtreecommitdiff
path: root/src/mongo/db/kill_current_op.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-10-25 14:07:23 -0700
committerAaron <aaron@10gen.com>2012-11-08 16:32:38 -0800
commit6a51b6b01e4ebdd723e6ad33f07934d5558f9ad7 (patch)
tree28bcdb963e99f213a281148a53b3c801c5fb41d8 /src/mongo/db/kill_current_op.h
parentf5d6b28def1f23def5cd1ba551f5dc73277407ff (diff)
downloadmongo-6a51b6b01e4ebdd723e6ad33f07934d5558f9ad7.tar.gz
SERVER-3067 Add killop support for foreground index builds.
Diffstat (limited to 'src/mongo/db/kill_current_op.h')
-rw-r--r--src/mongo/db/kill_current_op.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/kill_current_op.h b/src/mongo/db/kill_current_op.h
index dd39462b134..2f4a7eb04d3 100644
--- a/src/mongo/db/kill_current_op.h
+++ b/src/mongo/db/kill_current_op.h
@@ -65,6 +65,9 @@ namespace mongo {
**/
void notifyAllWaiters();
+ /** Reset the object to its initial state. Only for testing. */
+ void reset();
+
private:
void interruptJs( AtomicUInt *op );
volatile bool _globalKill;