You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LRU_K: harden param parsing and account for K in obj_md_size
- Replace `strstr("k=") + atoi` with `strsep`-based key=value tokenizer
that matches the SLRU pattern. Avoids fragile substring matches
(e.g. embedded "k=" in unrelated keys), validates the value with
`strtol` (no silent truncation), errors on unknown keys, and adds
a `print` parameter consistent with other algos.
- Reorder LRU_K_init so parse_params runs before obj_md_size, and
scale per-object metadata as `8 * k + 16` (history vtimes + node
overhead) instead of a fixed 8 bytes that ignored K.
0 commit comments