mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
24 lines
548 B
C++
24 lines
548 B
C++
// 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 );
|
|
}
|