1
0
Fork 0

Added some VelocyPack helper functions for Coordinators

This commit is contained in:
Michael Hackstein 2015-12-07 14:24:21 +01:00
parent dd172d1776
commit b78145f73f
1 changed files with 24 additions and 0 deletions

View File

@ -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.
////////////////////////////////////////////////////////////////////////////////