diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-11-08 00:17:09 -0500 |
---|---|---|
committer | Alberto Lerner <alerner@10gen.com> | 2010-11-08 10:58:41 -0500 |
commit | 8956ac99d0f374b0653776c18c15ca84d497165d (patch) | |
tree | 1f08c66bfb07916c9468a35d199e19d99fa0f615 | |
parent | bdf4a9adfe39376de0ef4f5f88f7c0bb61cd2eb3 (diff) | |
download | mongo-8956ac99d0f374b0653776c18c15ca84d497165d.tar.gz |
when cleaning a chunk after migrating, don't store those deletes in the xfer list SERVER-2068
-rw-r--r-- | s/d_migrate.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp index cb9bb0e04c4..bb332f20899 100644 --- a/s/d_migrate.cpp +++ b/s/d_migrate.cpp @@ -242,6 +242,14 @@ namespace mongo { switch ( opstr[0] ){ case 'd': { + + if ( getThreadName() == "cleanupOldData" ){ + // we don't want to xfer things we're cleaning + // as then they'll be deleted on TO + // which is bad + return; + } + // can't filter deletes :( scoped_lock lk( _mutex ); _deleted.push_back( ide.wrap() ); |