From 5eaf9904052b46e7ede5c8e1720760fd20ca2bde Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Mon, 16 Nov 2015 20:13:44 +0100 Subject: [PATCH] Fixed converting VertexId -> String in Cluster --- arangod/V8Server/V8Traverser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arangod/V8Server/V8Traverser.cpp b/arangod/V8Server/V8Traverser.cpp index 07d33523ee..0344903cd1 100644 --- a/arangod/V8Server/V8Traverser.cpp +++ b/arangod/V8Server/V8Traverser.cpp @@ -82,12 +82,12 @@ VertexId triagens::arango::traverser::IdStringToVertexId ( } string const collectionName = vertex.substr(0, split); - auto coli = resolver->getCollectionStruct(collectionName); + auto cid = resolver->getCollectionIdCluster(collectionName); - if (coli == nullptr) { + if (cid == 0) { throw TRI_ERROR_ARANGO_COLLECTION_NOT_FOUND; } - return VertexId(coli->_cid, const_cast(str + split + 1)); + return VertexId(cid, const_cast(str + split + 1)); }