summaryrefslogtreecommitdiff
path: root/s/d_logic.h
blob: 3e483c4539626c56858631be1786c23f15036188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 );
}