summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2011-01-21 17:17:20 -0500
committerAlberto Lerner <alerner@10gen.com>2011-01-21 17:17:20 -0500
commit136ad2616695b02eb7e8e8c67cb3598ec677b7fd (patch)
tree80a7c18e4730cde995e8a2be5d2da59f0d7648c9
parent5cfe1eb716e35f6b0815ac346e168750d0868d63 (diff)
downloadmongo-136ad2616695b02eb7e8e8c67cb3598ec677b7fd.tar.gz
logOp would emit messages if being called when no active migration is ongoing
-rw-r--r--s/d_migrate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp
index 6ddd9667b46..7204974a737 100644
--- a/s/d_migrate.cpp
+++ b/s/d_migrate.cpp
@@ -218,8 +218,10 @@ namespace mongo {
}
void logOp( const char * opstr , const char * ns , const BSONObj& obj , BSONObj * patt ){
- if ( ! _active )
+ if ( ! _active ) {
+ RARELY log() << "logOpForSharding got called when inactive for '" << ns << endl;
return;
+ }
if ( _ns != ns )
return;