-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix log message "DB 9: 100 keys (0 volatile) in 16 slots HT" (#1691)
With verbose logging, this message is logged every 5 seconds. Before #1186, there were 128 slots in a database with 100 keys. Slots here means the number of entries that can be stored on the top-level of a hash table, which in the dict was the same as the number of buckets. With the new hash table, there are multiple entries per bucket, so the number of buckets is not a useful metric to show. This PR multiplies the number of buckets with the number of entry positions per bucket. With this change, the log message is instead 36236:M 09 Feb 2025 15:47:18.923 - DB 9: 100 keys (0 volatile) in 112 slots HT. Signed-off-by: Viktor Söderqvist <[email protected]>
- Loading branch information
1 parent
de3672a
commit e8ae5b1
Showing
3 changed files
with
7 additions
and
1 deletion.
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