1
0
Fork 0

fixed edge index lookups in cluster

This commit is contained in:
Jan Steemann 2015-04-13 14:36:16 +02:00
parent a17d2d2e0e
commit d8597d9662
2 changed files with 6 additions and 2 deletions

View File

@ -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) {
}
}

View File

@ -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);