• Wen Hui's avatar
    config memory limits: handle values larger than (signed) LLONG_MAX (#9313) · 641780a9
    Wen Hui authored
    This aims to solve the issue in CONFIG SET maxmemory can only set maxmemory to up
    to 9223372036854775807 (2^63) while the maxmemory should be ULLONG.
    Added a memtoull function to convert a string representing an amount of memory
    into the number of bytes (similar to memtoll but for ull). Also added ull2string to
    convert a ULLong to string (Similar to ll2string).
    641780a9
util.c 30.2 KB