-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix KDC lookaside cache entry count tracking
The KDC lookaside cache was incrementing num_entries when an entry was added, but it did not decrement num_entries when an entry was removed. Decrement num_entries in discard_entry(). Also fix some function comments to correctly explain what the function is doing, and refactor kdc_insert_lookaside by moving the code that inserts an entry into a new static function called insert_entry().
- Loading branch information
1 parent
4f1afe0
commit 23762ea
Showing
1 changed file
with
56 additions
and
26 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