summaryrefslogtreecommitdiff
path: root/src/mongo/db/range_deleter_service.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2013-05-08 17:59:43 -0400
committerRandolph Tan <randolph@10gen.com>2013-05-22 17:11:28 -0400
commit52e081c9bc5268dddcc3bf7e1df87266d7ea2ec3 (patch)
tree34efdc627045fa11c8de167fc569675cf9fc3855 /src/mongo/db/range_deleter_service.h
parent47fc9f6809a29713ac7d80a4b318e690906075df (diff)
downloadmongo-52e081c9bc5268dddcc3bf7e1df87266d7ea2ec3.tar.gz
SERVER-8598 Add command to cleanup orphaned data created by failed chunk migrations
Step 3: Replace OldDataCleanup with RangeDeleter
Diffstat (limited to 'src/mongo/db/range_deleter_service.h')
-rw-r--r--src/mongo/db/range_deleter_service.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mongo/db/range_deleter_service.h b/src/mongo/db/range_deleter_service.h
new file mode 100644
index 00000000000..65ee073519e
--- /dev/null
+++ b/src/mongo/db/range_deleter_service.h
@@ -0,0 +1,27 @@
+/**
+ * Copyright (C) 2013 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/>.
+ */
+
+#pragma once
+
+#include "mongo/s/range_deleter.h"
+
+namespace mongo {
+
+ /**
+ * Gets the global instance of the deleter and starts it.
+ */
+ RangeDeleter* getDeleter();
+}