From 4eefaf421bfeddf040d96a3dafb12e09673423d7 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Sun, 31 Jan 2010 08:32:52 +0100 Subject: Imported Upstream version 1.3.1 --- s/d_logic.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 s/d_logic.h (limited to 's/d_logic.h') diff --git a/s/d_logic.h b/s/d_logic.h new file mode 100644 index 0000000..3e483c4 --- /dev/null +++ b/s/d_logic.h @@ -0,0 +1,23 @@ +// d_logic.h + +#pragma once + +#include "../stdafx.h" + +namespace mongo { + + /** + * @return true if we have any shard info for the ns + */ + bool haveLocalShardingInfo( const string& ns ); + + /** + * @return true if the current threads shard version is ok, or not in sharded version + */ + bool shardVersionOk( const string& ns , string& errmsg ); + + /** + * @return true if we took care of the message and nothing else should be done + */ + bool handlePossibleShardedMessage( Message &m, DbResponse &dbresponse ); +} -- cgit v1.2.3