| 118 | } |
| 119 | |
| 120 | PhxSQLClient_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 | |
| 127 | PhxSQLClient_LeakyBucket::~PhxSQLClient_LeakyBucket() { |
| 128 | delete m_poConfig, m_poConfig = NULL; |
nothing calls this directly
no outgoing calls
no test coverage detected