MCPcopy Create free account
hub / github.com/Tencent/phxsql / freeMmapPtr

Method freeMmapPtr

phxsqlclient/utils/leakybucket.cpp:94–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void MmapLeakyBucket::freeMmapPtr(void * ptr, uint32_t len) {
95 if (0 != munmap(ptr, len)) {
96 //Log( COMM_LOG_ERR, "ERR: munmap fail, errno %d, %s\n",
97 // errno, strerror( errno ) );
98 }
99}
100
101int MmapLeakyBucket::Init(Config_t * ptConfig, const char * sPath) {
102 m_tConfig = *ptConfig;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected