diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-01-29 01:25:24 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-01-29 01:25:24 -0500 |
commit | 1b68b2f53b9493425d9e524bbd81ea4ac0ae3524 (patch) | |
tree | cff64baf4ab60e6960388d3afe627cdf038452aa /s/d_split.cpp | |
parent | a58c7c690dec4cd2f5a0ab877d5b3608e578e5e0 (diff) | |
download | mongo-1b68b2f53b9493425d9e524bbd81ea4ac0ae3524.tar.gz |
fix some split logging
Diffstat (limited to 's/d_split.cpp')
-rw-r--r-- | s/d_split.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/s/d_split.cpp b/s/d_split.cpp index 0f7e82d0058..d61bee22412 100644 --- a/s/d_split.cpp +++ b/s/d_split.cpp @@ -560,7 +560,7 @@ namespace mongo { BSONObj x = conn->findOne( ShardNS::chunk , Query( BSON( "ns" << ns ) ).sort( BSON( "lastmod" << -1 ) ) ); maxVersion = x["lastmod"]; - BSONObj currChunk = conn->findOne( ShardNS::chunk , shardId.wrap( "_id" ) ); + BSONObj currChunk = conn->findOne( ShardNS::chunk , shardId.wrap( "_id" ) ).getOwned(); assert( currChunk["shard"].type() ); assert( currChunk["min"].type() ); assert( currChunk["max"].type() ); @@ -688,7 +688,7 @@ namespace mongo { BSONObj cmd = cmdBuilder.obj(); - log(7) << "splitChunk update: " << cmd << endl; + LOG(1) << "splitChunk update: " << cmd << endl; bool ok; BSONObj cmdResult; |