mirror of https://gitee.com/bigwinds/arangodb
added constraints
This commit is contained in:
parent
b02a33a73b
commit
3f54a29aad
|
@ -327,10 +327,6 @@ static TRI_doc_mptr_t CreateDocument (TRI_sim_collection_t* collection,
|
|||
// update indexes
|
||||
// .............................................................................
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// update indexes
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// generate create header
|
||||
if (res == TRI_ERROR_NO_ERROR) {
|
||||
|
||||
|
@ -550,10 +546,6 @@ static TRI_doc_mptr_t const UpdateDocument (TRI_sim_collection_t* collection,
|
|||
// update indexes
|
||||
// .............................................................................
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// update indexes
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// update the header
|
||||
if (res == TRI_ERROR_NO_ERROR) {
|
||||
TRI_doc_mptr_t update;
|
||||
|
@ -943,8 +935,6 @@ static TRI_doc_mptr_t const CreateShapedJson (TRI_doc_collection_t* document,
|
|||
TRI_df_marker_t* result;
|
||||
TRI_sim_collection_t* collection;
|
||||
|
||||
TRI_set_errno(TRI_ERROR_NO_ERROR);
|
||||
|
||||
collection = (TRI_sim_collection_t*) document;
|
||||
|
||||
if (type == TRI_DOC_MARKER_DOCUMENT) {
|
||||
|
@ -1037,8 +1027,6 @@ static TRI_doc_mptr_t const UpdateShapedJson (TRI_doc_collection_t* document,
|
|||
TRI_doc_mptr_t const* header;
|
||||
TRI_sim_collection_t* collection;
|
||||
|
||||
TRI_set_errno(TRI_ERROR_NO_ERROR);
|
||||
|
||||
collection = (TRI_sim_collection_t*) document;
|
||||
|
||||
// get an existing header pointer
|
||||
|
@ -2184,10 +2172,6 @@ static int UpdateImmediateIndexes (TRI_sim_collection_t* collection,
|
|||
return TRI_ERROR_AVOCADO_UNIQUE_CONSTRAINT_VIOLATED;
|
||||
}
|
||||
|
||||
if (constraint) {
|
||||
return TRI_VOC_ERROR_UNIQUE_VIOLATED;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -2872,7 +2856,7 @@ static TRI_index_t* CreateSkiplistIndexSimCollection (TRI_sim_collection_t* coll
|
|||
|
||||
if (idx != NULL) {
|
||||
TRI_DestroyVector(&paths);
|
||||
TRI_DestroyVectorString(&names);
|
||||
TRI_DestroyVectorPointer(&fields);
|
||||
|
||||
LOG_TRACE("skiplist-index already created");
|
||||
return idx;
|
||||
|
|
|
@ -474,8 +474,6 @@ TRI_vocbase_t* TRI_OpenVocBase (char const* path) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
TRI_FreeString(lockFile);
|
||||
|
||||
// setup vocbase structure
|
||||
vocbase = TRI_Allocate(sizeof(TRI_vocbase_t));
|
||||
|
||||
|
|
Loading…
Reference in New Issue