From f0d9a01bccdaeb466c12c92057914bbfef59526c Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Thu, 15 Dec 2011 09:35:47 +0100 Subject: Imported Upstream version 2.0.2 --- s/d_logic.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 's/d_logic.cpp') diff --git a/s/d_logic.cpp b/s/d_logic.cpp index 9d4fd74..fd281ac 100644 --- a/s/d_logic.cpp +++ b/s/d_logic.cpp @@ -107,7 +107,10 @@ namespace mongo { b.append( "connectionId" , cc().getConnectionId() ); b.append( "instanceIdent" , prettyHostName() ); b.appendTimestamp( "version" , shardingState.getVersion( ns ) ); - b.appendTimestamp( "yourVersion" , ShardedConnectionInfo::get( true )->getVersion( ns ) ); + + ShardedConnectionInfo* info = ShardedConnectionInfo::get( false ); + b.appendTimestamp( "yourVersion" , info ? info->getVersion(ns) : (ConfigVersion)0 ); + b.appendBinData( "msg" , m.header()->len , bdtCustom , (char*)(m.singleData()) ); LOG(2) << "writing back msg with len: " << m.header()->len << " op: " << m.operation() << endl; writeBackManager.queueWriteBack( clientID.str() , b.obj() ); -- cgit v1.2.3