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

Function InitResourceCallback

contrib/pax_storage/src/cpp/comm/pax_resource.cc:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50static std::mutex resource_list_lock;
51
52void InitResourceCallback() {
53 Assert(dlist_is_empty(&resource_list.head));
54 RegisterResourceReleaseCallback(paxc::ReleaseResourceCallback, NULL);
55}
56
57bool RememberResourceCallback(ResourceReleaseFunc release_func, Datum arg) {
58 struct PaxResourceContext *ctx;

Callers 1

_PG_initFunction · 0.85

Calls 2

dlist_is_emptyFunction · 0.85

Tested by

no test coverage detected