summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-01-21 18:57:29 -0500
committerEliot Horowitz <eliot@10gen.com>2011-01-21 18:57:29 -0500
commit5865515aa11e731dbe265bdefa8faf8c5bb21f6f (patch)
treec3c5660cbf6b5368be97b33a2350c3e909bf9af9
parenteaf37fcd7fc483fd62f2c3bd92e8bc577b2b486a (diff)
downloadmongo-5865515aa11e731dbe265bdefa8faf8c5bb21f6f.tar.gz
move logOpForSharding message
-rw-r--r--s/d_migrate.cpp5
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" );