1
0
Fork 0

Fixed converting VertexId -> String in Cluster

This commit is contained in:
Michael Hackstein 2015-11-16 20:13:44 +01:00
parent 4c45e3fb5a
commit 5eaf990405
1 changed files with 3 additions and 3 deletions

View File

@ -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<char *>(str + split + 1));
return VertexId(cid, const_cast<char *>(str + split + 1));
}