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

Function Globals_GetGraphCount

src/globals.c:60–71  ·  view source on GitHub ↗

return number of graphs in keyspace

Source from the content-addressed store, hash-verified

58
59// return number of graphs in keyspace
60int Globals_GetGraphCount(void) {
61 // acuire read lock
62 pthread_rwlock_rdlock(&_globals.lock);
63
64 // get number of graphs
65 int n = array_len(_globals.graphs_in_keyspace);
66
67 // unlock
68 pthread_rwlock_unlock(&_globals.lock);
69
70 return n;
71}
72
73// get direct access to 'graphs_in_keyspace'
74GraphContext **Globals_Get_GraphsInKeyspace(void) {

Callers 1

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected