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

Function _count_indices_from_schemas

src/graph/graphcontext.c:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static void _DeleteTelemetryStream(RedisModuleCtx *ctx, const GraphContext *gc);
34
35static uint64_t _count_indices_from_schemas(const Schema** schemas) {
36 ASSERT(schemas);
37 uint64_t count = 0;
38
39 const uint32_t length = array_len(schemas);
40 for (uint32_t i = 0; i < length; ++i) {
41 const Schema *schema = schemas[i];
42 ASSERT(schema);
43 count += Schema_IndexCount(schema);
44 }
45
46 return count;
47}
48
49// increase graph context ref count by 1
50inline void GraphContext_IncreaseRefCount

Callers 2

Calls 2

array_lenFunction · 0.85
Schema_IndexCountFunction · 0.85

Tested by

no test coverage detected