MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / Schema_RemoveEdgeFromIndices

Function Schema_RemoveEdgeFromIndices

src/schema/schema.c:600–615  ·  view source on GitHub ↗

remove edge from schema indicies

Source from the content-addressed store, hash-verified

598
599// remove edge from schema indicies
600void Schema_RemoveEdgeFromIndices
601(
602 const Schema *s,
603 const Edge *e
604) {
605 ASSERT(s != NULL);
606 ASSERT(e != NULL);
607
608 Index idx = NULL;
609
610 idx = ACTIVE_EXACTMATCH_IDX(s);
611 if(idx != NULL) Index_RemoveEdge(idx, e);
612
613 idx = PENDING_EXACTMATCH_IDX(s);
614 if(idx != NULL) Index_RemoveEdge(idx, e);
615}
616
617//------------------------------------------------------------------------------
618// constraints API

Callers 2

_index_delete_edgeFunction · 0.85
_DeleteEdgeFromIndicesFunction · 0.85

Calls 1

Index_RemoveEdgeFunction · 0.85

Tested by

no test coverage detected