diff options
author | Antonin Kral <a.kral@bobek.cz> | 2010-01-31 08:32:52 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2010-01-31 08:32:52 +0100 |
commit | 4eefaf421bfeddf040d96a3dafb12e09673423d7 (patch) | |
tree | cb2e5ccc7f98158894f977ff131949da36673591 /s/d_logic.h | |
download | mongodb-4eefaf421bfeddf040d96a3dafb12e09673423d7.tar.gz |
Imported Upstream version 1.3.1
Diffstat (limited to 's/d_logic.h')
-rw-r--r-- | s/d_logic.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 ); +} |