-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SERVER-25846 Coverity analysis defect 99861: Dereference after null c…
…heck (#2993) * SERVER-25846 Coverity analysis defect 99861: Dereference after null check Now the __wt_cond_alloc, __wt_cond_wait_signal and __wt_cond_signal functions can panic on failure, they potentially indirect through the WT_SESSION handle to panic the WT_CONNECTION structure. Fortunately, they should not be called with a NULL WT_SESSION handle, remove the tests for that condition, making Coverity happy. * Missed a call to __wt_cond_wait that passed an explicit NULL WT_SESSION; replace the NULL with the existing session handle. * minor whitespace cleanup during condition variable review.
- Loading branch information
1 parent
8b40b2f
commit e80ef3c
Showing
5 changed files
with
12 additions
and
47 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
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
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