From 0070b40fbf9daa1e33644990c7cbc34dcc6814ad Mon Sep 17 00:00:00 2001 From: jsteemann Date: Wed, 4 Jan 2017 09:08:13 +0100 Subject: [PATCH] attempt to fix Windows build --- arangod/Cluster/v8-cluster.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arangod/Cluster/v8-cluster.cpp b/arangod/Cluster/v8-cluster.cpp index 646cd8f5e4..3e43ae11ee 100644 --- a/arangod/Cluster/v8-cluster.cpp +++ b/arangod/Cluster/v8-cluster.cpp @@ -267,8 +267,8 @@ static void JS_GetAgency(v8::FunctionCallbackInfo const& args) { /// @brief read transaction to the agency //////////////////////////////////////////////////////////////////////////////// -static void JS_APIAgency(std::string const& interface, - v8::FunctionCallbackInfo const& args) { +static void JS_APIAgency(std::string const& method, + v8::FunctionCallbackInfo const& args) { TRI_V8_TRY_CATCH_BEGIN(isolate) v8::HandleScope scope(isolate); @@ -288,7 +288,7 @@ static void JS_APIAgency(std::string const& interface, comm.sendWithFailover( arangodb::rest::RequestType::POST, AgencyCommManager::CONNECTION_OPTIONS._requestTimeout, - std::string("/_api/agency/") + interface, builder.toJson()); + std::string("/_api/agency/") + method, builder.toJson()); if (!result.successful()) { THROW_AGENCY_EXCEPTION(result);