mirror of https://gitee.com/bigwinds/arangodb
fixed edge index lookups in cluster
This commit is contained in:
parent
a17d2d2e0e
commit
d8597d9662
|
@ -321,7 +321,7 @@ void Collection::fillIndexesDBServer () const {
|
|||
break;
|
||||
}
|
||||
else if (localIndex->_type == TRI_IDX_TYPE_PRIMARY_INDEX ||
|
||||
localIndex->_type == TRI_IDX_TYPE_EDGE_INDEX) {
|
||||
localIndex->_type == TRI_IDX_TYPE_EDGE_INDEX) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2078,7 +2078,11 @@ static bool InitDocumentCollection (TRI_document_collection_t* document,
|
|||
|
||||
// create edges index
|
||||
if (document->_info._type == TRI_COL_TYPE_EDGE) {
|
||||
TRI_index_t* edgesIndex = TRI_CreateEdgeIndex(document, document->_info._cid);
|
||||
TRI_idx_iid_t iid = document->_info._cid;
|
||||
if (document->_info._planId > 0) {
|
||||
iid = document->_info._planId;
|
||||
}
|
||||
TRI_index_t* edgesIndex = TRI_CreateEdgeIndex(document, iid);
|
||||
|
||||
if (edgesIndex == nullptr) {
|
||||
TRI_FreeIndex(primaryIndex);
|
||||
|
|
Loading…
Reference in New Issue