• yiwu-arbug's avatar
    Fix rocksdb logging macro (#218) · f9fc964f
    yiwu-arbug authored
    This change is to fix ASAN test failure in CI.
    
    The rocksdb logging.h file provides the ROCKS_LOG_XXX logging macro, and it contain a logic to shorten the source file being print. It use the length of its file path (e.g. "/path/to/rocksdb/logging/logging.h")  to truncate other source file path. Since Titan source could be in different directory, Titan source file path could be truncated incorrectly, or even cause out-of-range access to the string buffer. Copying the file into titan repo and make a Titan version of the macros to fix the problem.
    
    Also doing clang format.
    Signed-off-by: 's avatarYi Wu <yiwu@pingcap.com>
    Signed-off-by: 's avatarYi Wu <yiwu@pingcap.com>
    f9fc964f
titan_checkpoint_impl.cc 10.1 KB