summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-11-08 09:41:35 -0500
committerAlberto Lerner <alerner@10gen.com>2010-11-08 10:59:21 -0500
commit6280a732012821396ee8432470884b2d38fb48c3 (patch)
tree5af5e1148b402ba80aa5a8d7a83bf7ac4b757949
parent2dd7f54687dc034b39098728d49238c65f4e44fa (diff)
downloadmongo-6280a732012821396ee8432470884b2d38fb48c3.tar.gz
SERVER-2068 make sure to use the same thread name
-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