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

Method PhxSQLClient_LeakyBucket

phxsqlclient/phxsqlclient_leakybucket.cpp:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120PhxSQLClient_LeakyBucket::PhxSQLClient_LeakyBucket(const char *pcUser, const char *pcPasswd, const char *pcDB,
121 uint32_t iClientFlag, int iBucketSize, int iFillPeriod) :
122 PhxSQLClientBase(NULL, NULL, pcUser, pcPasswd, pcDB, iClientFlag) {
123 m_poConfig = new PhxSQLClientConfig();
124 m_poDisasterStrategy = new PhxSQLClientDisasterStrategy_LeakyBucket(iBucketSize, iFillPeriod);
125}
126
127PhxSQLClient_LeakyBucket::~PhxSQLClient_LeakyBucket() {
128 delete m_poConfig, m_poConfig = NULL;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected