Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid high CPU usage in DB logger when DB is unavailable at startup.
Commit [aab13b3] fixed a logic typo in the loop exit clause, but did not make a symetric change in the sleep clause, so we sometimes enter a condition where the we were consuming 100% CPU waiting for the DB.
- Loading branch information
1 parent
2fe38e4
commit 3d170bf
Showing
2 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters