diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-01-21 18:57:29 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-01-21 18:57:29 -0500 |
commit | 5865515aa11e731dbe265bdefa8faf8c5bb21f6f (patch) | |
tree | c3c5660cbf6b5368be97b33a2350c3e909bf9af9 | |
parent | eaf37fcd7fc483fd62f2c3bd92e8bc577b2b486a (diff) | |
download | mongo-5865515aa11e731dbe265bdefa8faf8c5bb21f6f.tar.gz |
move logOpForSharding message
-rw-r--r-- | s/d_migrate.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp index 3521c856947..0c0b087a6dc 100644 --- a/s/d_migrate.cpp +++ b/s/d_migrate.cpp @@ -219,17 +219,18 @@ namespace mongo { void logOp( const char * opstr , const char * ns , const BSONObj& obj , BSONObj * patt ){ if ( ! _active ) { - RARELY log() << "logOpForSharding got called when inactive for '" << ns << "'" << endl; return; } if ( _ns != ns ) return; - + char op = opstr[0]; if ( op == 'n' || op =='c' || ( op == 'd' && opstr[1] == 'b' ) ) return; + RARELY log() << "logOpForSharding got to core portion: '" << ns << "'" << endl; + BSONElement ide; if ( patt ) ide = patt->getField( "_id" ); |