Skip to content

Commit

Permalink
correct type internal to kvstore (minor) (valkey-io#1246)
Browse files Browse the repository at this point in the history
All of the internal variables related to number of dicts in the kvstore
are type `int`. Not sure why these 2 items were declared as `long long`.

Signed-off-by: Jim Brunner <[email protected]>
  • Loading branch information
JimB123 authored Nov 1, 2024
1 parent e985ead commit 0d7b234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kvstore.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ struct _kvstore {
int flags;
dictType *dtype;
dict **dicts;
long long num_dicts;
long long num_dicts_bits;
int num_dicts;
int num_dicts_bits;
list *rehashing; /* List of dictionaries in this kvstore that are currently rehashing. */
int resize_cursor; /* Cron job uses this cursor to gradually resize dictionaries (only used if num_dicts > 1). */
int allocated_dicts; /* The number of allocated dicts. */
Expand Down

0 comments on commit 0d7b234

Please sign in to comment.