Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix decode_log_file_c_impl compile error #1214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mars/xlog/crypt/decode_log_file_c_impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../)


add_executable(decode_log_file decode_log_file.c micro-ecc-master/uECC.c)
target_link_libraries(decode_log_file libzstd_static)
target_link_libraries(decode_log_file libzstd_static z)
1 change: 1 addition & 0 deletions mars/xlog/crypt/decode_log_file_c_impl/decode_log_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ bool zstdDecompress(const char* compressedBytes, size_t compressedBytesSize, cha
ZSTD_inBuffer input = {compressedBytes, compressedBytesSize, 0};
ZSTD_outBuffer output = {NULL, compressedBytesSize, 0};
bool done = false;
size_t lastPos = output.pos;

while (!done) {
if (output.pos >= uncompLength) {
Expand Down
2 changes: 1 addition & 1 deletion mars/xlog/src/appender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ void XloggerAppender::Open(const XLogConfig& _config) {
config_.cachedir_,
config_.logdir_,
config_.nameprefix_));
thread_timeout_cache_->start_after(3 * 60 * 1000);
thread_moveold_->start_after(3 * 60 * 1000);
#ifdef __APPLE__
setAttrProtectionNone(config_.cachedir_.c_str());
#endif
Expand Down