From b78145f73fa5ad63d0cfbc4b4c3a13af83aea491 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Mon, 7 Dec 2015 14:24:21 +0100 Subject: [PATCH] Added some VelocyPack helper functions for Coordinators --- arangod/Cluster/ClusterInfo.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arangod/Cluster/ClusterInfo.h b/arangod/Cluster/ClusterInfo.h index a302067d3c..a4b77ceb1c 100644 --- a/arangod/Cluster/ClusterInfo.h +++ b/arangod/Cluster/ClusterInfo.h @@ -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. ////////////////////////////////////////////////////////////////////////////////