summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--s/d_migrate.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp
index bb332f20899..8e9584c7009 100644
--- a/s/d_migrate.cpp
+++ b/s/d_migrate.cpp
@@ -102,9 +102,11 @@ namespace mongo {
log() << "moveChunk deleted: " << num << endl;
}
};
+
+ static const char * const cleanUpThreadName = "cleanupOldData";
void _cleanupOldData( OldDataCleanup cleanup ){
- Client::initThread( "cleanupOldData");
+ Client::initThread( cleanUpThreadName );
log() << " (start) waiting to cleanup " << cleanup.ns << " from " << cleanup.min << " -> " << cleanup.max << " # cursors:" << cleanup.initial.size() << endl;
int loops = 0;
@@ -243,7 +245,7 @@ namespace mongo {
case 'd': {
- if ( getThreadName() == "cleanupOldData" ){
+ if ( getThreadName() == cleanUpThreadName ){
// we don't want to xfer things we're cleaning
// as then they'll be deleted on TO
// which is bad