From e8019f7aee7abbed552043022bb85c55fcda1ddb Mon Sep 17 00:00:00 2001 From: Alberto Lerner Date: Sat, 23 Oct 2010 09:52:39 -0400 Subject: [PATCH] fix error in message when split point was empty --- s/chunk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s/chunk.cpp b/s/chunk.cpp index dc85095b391a9..c6ab2fe04912f 100644 --- a/s/chunk.cpp +++ b/s/chunk.cpp @@ -278,8 +278,8 @@ namespace mongo { // Normally, we'd have a sound split point here if the chunk is not empty. It's also a good place to // sanity check. if ( splitPoint.empty() || _min == splitPoint.front() || _max == splitPoint.front() ) { - log() << "want to split chunk, but can't find split point " - << " chunk: " << toString() << " got: " << splitPoint.front() << endl; + log() << "want to split chunk, but can't find split point chunk " << toString() + << " got: " << ( true ? "" : splitPoint.front().toString() ) << endl; return ChunkPtr(); }