Fix rocksdb logging macro (#218)
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:Yi Wu <yiwu@pingcap.com> Signed-off-by:
Yi Wu <yiwu@pingcap.com>
Showing
This diff is collapsed.
src/titan_logging.h
0 → 100644
Please
register
or
sign in
to comment