dont spin as much in the onlineNotificationThread

This commit is contained in:
Grant Limberg 2019-05-31 15:10:45 -07:00
parent 90d324ae96
commit 37d321afc8

View file

@ -1512,7 +1512,7 @@ void PostgreSQL::onlineNotificationThread()
// PQclear(res); // PQclear(res);
// } // }
std::this_thread::sleep_for(std::chrono::milliseconds(0)); std::this_thread::sleep_for(std::chrono::milliseconds(10));
} }
fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread\n", _myAddressStr.c_str()); fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread\n", _myAddressStr.c_str());
PQfinish(conn); PQfinish(conn);