MCPcopy Create free account
hub / github.com/apache/cloudberry / sepgsql_avc_reset

Function sepgsql_avc_reset

contrib/sepgsql/uavc.c:77–86  ·  view source on GitHub ↗

* Reset all the avc caches */

Source from the content-addressed store, hash-verified

75 * Reset all the avc caches
76 */
77static void
78sepgsql_avc_reset(void)
79{
80 MemoryContextReset(avc_mem_cxt);
81
82 memset(avc_slots, 0, sizeof(List *) * AVC_NUM_SLOTS);
83 avc_num_caches = 0;
84 avc_lru_hint = 0;
85 avc_unlabeled = NULL;
86}
87
88/*
89 * Reclaim caches recently unreferenced

Callers 1

sepgsql_avc_check_validFunction · 0.85

Calls 1

MemoryContextResetFunction · 0.85

Tested by

no test coverage detected