Skip to content

Commit

Permalink
fix the format error
Browse files Browse the repository at this point in the history
  • Loading branch information
RayaCoo committed Jul 22, 2024
1 parent beb6e24 commit 2f0b7f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/t_zset.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,8 @@ robj *zsetTypeCreate(size_t size_hint, size_t val_len_hint) {
/* Check if the existing zset should be converted to another encoding based off the
* the size hint. */
void zsetTypeMaybeConvert(robj *zobj, size_t size_hint, size_t value_len_hint) {
if (zobj->encoding == OBJ_ENCODING_LISTPACK && (size_hint > server.zset_max_listpack_entries ||
value_len_hint > server.zset_max_listpack_value)) {
if (zobj->encoding == OBJ_ENCODING_LISTPACK &&
(size_hint > server.zset_max_listpack_entries || value_len_hint > server.zset_max_listpack_value)) {
zsetConvertAndExpand(zobj, OBJ_ENCODING_SKIPLIST, size_hint);
}
}
Expand Down

0 comments on commit 2f0b7f1

Please # to comment.