• zhaozhao.zz's avatar
    MEMORY command: make USAGE more accurate · 605dddbb
    zhaozhao.zz authored
    In MEMORY USAGE command, we count the key argv[2] into usage,
    but the argument in command may contains free spaces because of
    sdsMakeRoomFor. But the key in db never contains free spaces
    because we use sdsdup when dbAdd, so using the real key to
    count the usage is more accurate.
    605dddbb
object.c 54 KB