Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MultiSizeBufferPool: remove invalid thrown exception, avoid overflow (#…
…2960) Due to the thread model of the pool, which avoid as much as possible from locking, I have to remove one of the exception thrown. The exception logic is invalid in some rare cases. Furthermore, due to the chance for overflow, we convert some of the statistics class members into signed integers - overflow on unsigned integers is undefined according to the C++ standard.
- Loading branch information
1 parent
d17685d
commit a1b4091
Showing
2 changed files
with
21 additions
and
27 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