Fix max_proxy_id_ initialization.

This commit is contained in:
levlam 2023-10-14 03:06:01 +03:00
parent 8a711b56d9
commit 7a6d6cf492

View File

@ -1094,6 +1094,8 @@ void ConnectionCreator::start_up() {
!G()->td_db()->get_binlog_pmc()->get(get_proxy_database_key(1)).empty()) {
// don't need to init proxies if they have never been added
init_proxies();
} else {
max_proxy_id_ = 2;
}
ref_cnt_guard_ = create_reference(-1);