This commit is contained in:
Grant Limberg 2023-04-19 07:56:58 -07:00
parent 8bc105b527
commit 9b5b94b515
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
3 changed files with 7 additions and 2 deletions

View file

@ -720,6 +720,7 @@ void PostgreSQL::initializeNetworks()
fprintf(stderr, "Took %llu us per network to load\n", (total/count));
}
stream.complete();
_network_count = count;
w.commit();
_pool->unborrow(c2);
@ -1034,7 +1035,6 @@ void PostgreSQL::heartbeat()
w.commit();
} catch (std::exception &e) {
fprintf(stderr, "%s: Heartbeat update failed: %s\n", controllerId, e.what());
w.abort();
_pool->unborrow(c);
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
continue;