Skip to content

Commit

Permalink
try to fix xlog crash
Browse files Browse the repository at this point in the history
  • Loading branch information
garryyan committed Jan 25, 2019
1 parent 90a8942 commit ef55cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mars/log/src/log_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void LogBuffer::__Flush() {
}

void LogBuffer::__Clear() {
memset(buff_.Ptr(), 0, buff_.MaxLength());
memset(buff_.Ptr(), 0, buff_.Length());
buff_.Length(0, 0);
remain_nocrypt_len_ = 0;
}
Expand Down

0 comments on commit ef55cf5

Please sign in to comment.