• 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
Name
Last commit
Last update
cmake Loading commit data...
include/titan Loading commit data...
scripts Loading commit data...
src Loading commit data...
tools Loading commit data...
util Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
codecov.yml Loading commit data...