1
0
Fork 0

removed parameter

This commit is contained in:
Jan Steemann 2014-07-31 16:04:43 +02:00
parent 9714979d73
commit d7429d3c6c
3 changed files with 7 additions and 9 deletions

View File

@ -1519,7 +1519,7 @@ static v8::Handle<v8::Value> EdgesQuery (TRI_edge_direction_e direction,
TRI_voc_cid_t cid;
TRI_voc_key_t key = 0;
res = TRI_ParseVertex(trx.resolver(), cid, key, vertices->Get(i), true);
res = TRI_ParseVertex(trx.resolver(), cid, key, vertices->Get(i));
if (res != TRI_ERROR_NO_ERROR) {
// error is just ignored
@ -1561,7 +1561,7 @@ static v8::Handle<v8::Value> EdgesQuery (TRI_edge_direction_e direction,
TRI_voc_key_t key = nullptr;
TRI_voc_cid_t cid;
res = TRI_ParseVertex(trx.resolver(), cid, key, argv[0], true);
res = TRI_ParseVertex(trx.resolver(), cid, key, argv[0]);
if (res != TRI_ERROR_NO_ERROR) {
TRI_V8_EXCEPTION(scope, res);

View File

@ -2582,7 +2582,7 @@ static v8::Handle<v8::Value> InsertEdgeCol (
edge._toKey = nullptr;
// extract from
res = TRI_ParseVertex(trx->resolver(), edge._fromCid, edge._fromKey, argv[0], false);
res = TRI_ParseVertex(trx->resolver(), edge._fromCid, edge._fromKey, argv[0]);
if (res != TRI_ERROR_NO_ERROR) {
FREE_STRING(TRI_CORE_MEM_ZONE, key);
@ -2590,7 +2590,7 @@ static v8::Handle<v8::Value> InsertEdgeCol (
}
// extract to
res = TRI_ParseVertex(trx->resolver(), edge._toCid, edge._toKey, argv[1], false);
res = TRI_ParseVertex(trx->resolver(), edge._toCid, edge._toKey, argv[1]);
if (res != TRI_ERROR_NO_ERROR) {
FREE_STRING(TRI_CORE_MEM_ZONE, edge._fromKey);
@ -10079,8 +10079,7 @@ static v8::Handle<v8::Value> MapGetIndexedShapedJson (uint32_t idx,
int TRI_ParseVertex (CollectionNameResolver const* resolver,
TRI_voc_cid_t& cid,
TRI_voc_key_t& key,
v8::Handle<v8::Value> const val,
bool translateName) {
v8::Handle<v8::Value> const val) {
v8::HandleScope scope;
@ -10106,7 +10105,7 @@ int TRI_ParseVertex (CollectionNameResolver const* resolver,
return TRI_ERROR_ARANGO_DOCUMENT_HANDLE_BAD;
}
if (translateName && ServerState::instance()->isDBserver()) {
if (ServerState::instance()->isDBserver()) {
cid = resolver->getCollectionIdCluster(collectionName);
}
else {

View File

@ -57,8 +57,7 @@ namespace triagens {
int TRI_ParseVertex (triagens::arango::CollectionNameResolver const*,
TRI_voc_cid_t&,
TRI_voc_key_t&,
v8::Handle<v8::Value> const,
bool);
v8::Handle<v8::Value> const);
////////////////////////////////////////////////////////////////////////////////
/// @brief looks up a index identifier