Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

--max_log_size not work when larger than 4096 #497

@ghostwang

Description

@ghostwang

in logging.cc:
maximum of file_length_ is 0xFFFFFFFF
when --max_log_size is larger than 4096 (0xFFFFFFFF >> 20)
line 1108
if (static_cast<int>(file_length_ >> 20) >= MaxLogSize() || PidHasChanged()) {
the first condition will never satisfied.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions