mirror of https://gitee.com/bigwinds/arangodb
Added some VelocyPack helper functions for Coordinators
This commit is contained in:
parent
dd172d1776
commit
b78145f73f
|
@ -888,6 +888,17 @@ namespace triagens {
|
|||
std::string& errorMsg,
|
||||
double timeout);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief create collection in coordinator
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int createCollectionCoordinator (std::string const& databaseName,
|
||||
std::string const& collectionID,
|
||||
uint64_t numberOfShards,
|
||||
VPackSlice const& slice,
|
||||
std::string& errorMsg,
|
||||
double timeout);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief create collection in coordinator
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -924,6 +935,19 @@ namespace triagens {
|
|||
std::string const& collectionID,
|
||||
TRI_vocbase_col_status_e status);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief ensure an index in coordinator.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int ensureIndexCoordinator (std::string const& databaseName,
|
||||
std::string const& collectionID,
|
||||
VPackSlice const& slice,
|
||||
bool create,
|
||||
bool (*compare)(TRI_json_t const*, TRI_json_t const*),
|
||||
TRI_json_t*& resultJson,
|
||||
std::string& errorMsg,
|
||||
double timeout);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief ensure an index in coordinator.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue