MCPcopy Create free account
hub / github.com/Tencent/phxsql / ~MmapLeakyBucket

Method ~MmapLeakyBucket

phxsqlclient/utils/leakybucket.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27MmapLeakyBucket::~MmapLeakyBucket() {
28 if (NULL != m_poLock)
29 delete m_poLock;
30 m_poLock = NULL;
31
32 if (NULL != m_ptBucket) {
33 freeMmapPtr((void *) m_ptBucket, sizeof(Bucket_t));
34 }
35 m_ptBucket = NULL;
36}
37
38void * MmapLeakyBucket::getMmapPtr(const char * filePath, uint32_t len, int * isNewFile) {
39 *isNewFile = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected