MCPcopy Create free account
hub / github.com/acl-dev/acl / keep_min_conns

Method keep_min_conns

lib_acl_cpp/src/connpool/connect_manager.cpp:445–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445size_t connect_manager::keep_min_conns(size_t step)
446{
447 std::vector<connect_pool*> pools;
448
449 pools_dump(step, pools);
450 if (pools.empty()) {
451 return 0;
452 }
453
454 keep_min_conns(pools);
455 return pools_release(pools);
456}
457
458size_t connect_manager::check_conns(size_t step, bool check_idle,
459 bool kick_dead, bool keep_conns, thread_pool* threads, size_t* left)

Callers

nothing calls this directly

Calls 4

beginMethod · 0.80
keep_connsMethod · 0.80
emptyMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected