summaryrefslogtreecommitdiff
path: root/src/mongo/db/interrupt_status_mongod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/interrupt_status_mongod.cpp')
-rwxr-xr-xsrc/mongo/db/interrupt_status_mongod.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/mongo/db/interrupt_status_mongod.cpp b/src/mongo/db/interrupt_status_mongod.cpp
new file mode 100755
index 00000000000..ab66d3c3a14
--- /dev/null
+++ b/src/mongo/db/interrupt_status_mongod.cpp
@@ -0,0 +1,37 @@
+/**
+ * Copyright (c) 2012 10gen Inc.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "pch.h"
+
+#include "db/interrupt_status_mongod.h"
+#include "db/curop.h"
+
+namespace mongo {
+
+ InterruptStatusMongod InterruptStatusMongod::status;
+
+ InterruptStatusMongod::InterruptStatusMongod() {
+ }
+
+ void InterruptStatusMongod::checkForInterrupt() {
+ killCurrentOp.checkForInterrupt();
+ }
+
+ const char *InterruptStatusMongod::checkForInterruptNoAssert() {
+ return killCurrentOp.checkForInterruptNoAssert();
+ }
+
+};