• Matt Stancliff's avatar
    Remove code duplication from check-rdb · 764b000c
    Matt Stancliff authored
    redis-check-rdb (previously redis-check-dump) had every RDB define
    copy/pasted from rdb.h and some defines copied from redis.h.  Since
    the initial copy, some constants had changed in Redis headers and
    check-dump was using incorrect values.
    
    Since check-rdb is now a mode of Redis, the old check-dump code
    is cleaned up to:
      - replace all printf with redisLog (and remove \n from all strings)
      - remove all copy/pasted defines to use defines from rdb.h and redis.h
      - replace all malloc/free with zmalloc/zfree
      - remove unnecessary include headers
    764b000c
redis-check-rdb.c 19.6 KB