mirror of https://gitee.com/bigwinds/arangodb
fixed error message
This commit is contained in:
parent
7836af42cc
commit
c353fb6ffd
|
@ -144,7 +144,7 @@ int HashIndex_add(HashIndex* hashIndex, HashIndexElement* element) {
|
|||
// .............................................................................
|
||||
|
||||
result = TRI_InsertKeyHashArray(hashIndex->hashArray, element, element, false);
|
||||
return result ? TRI_ERROR_NO_ERROR : TRI_ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED;
|
||||
return result ? TRI_ERROR_NO_ERROR : TRI_set_errno(TRI_ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -679,11 +679,13 @@ int TRI_InsertKeySkipList (TRI_skiplist_t* skiplist, void* key, void* element, b
|
|||
// .......................................................................
|
||||
if (compareResult == 0) {
|
||||
TRI_FreeSkipListNode(&(skiplist->_base), newNode);
|
||||
|
||||
if (overwrite) {
|
||||
j = IndexStaticCopyElementElement(&(skiplist->_base), &(nextNode->_element), element);
|
||||
return j;
|
||||
}
|
||||
return TRI_ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED;
|
||||
|
||||
return TRI_set_errno(TRI_ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED);
|
||||
}
|
||||
|
||||
// .......................................................................
|
||||
|
|
Loading…
Reference in New Issue