• A
    String value unsharing refactored into proper function. · 543ede03
    antirez 提交于
    All the Redis functions that need to modify the string value of a key in
    a destructive way (APPEND, SETBIT, SETRANGE, ...) require to make the
    object unshared (if refcount > 1) and encoded in raw format (if encoding
    is not already REDIS_ENCODING_RAW).
    
    This was cut & pasted many times in multiple places of the code. This
    commit puts the small logic needed into a function called
    dbUnshareStringValue().
    543ede03
object.c 21.7 KB