Skip to content
Commit 77cc387b authored by yiwu-arbug's avatar yiwu-arbug
Browse files

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: default avatarYi Wu <yiwu@pingcap.com>

Signed-off-by: default avatarYi Wu <yiwu@pingcap.com>
parent fd580375
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment