Skip to content

Commit

Permalink
env.h: static constexpr kDoNotSupportGetLogFileSize (facebook#12203)
Browse files Browse the repository at this point in the history
Summary:
kDoNotSupportGetLogFileSize should be static constexpr

Pull Request resolved: facebook#12203

Reviewed By: jaykorean

Differential Revision: D52616556

Pulled By: anand1976

fbshipit-source-id: 56583b2b1fbe41022d951b6334b2264c1559a88e
  • Loading branch information
rockeet authored and facebook-github-bot committed Jan 10, 2024
1 parent 1a1f9f1 commit 513aae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rocksdb/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ enum InfoLogLevel : unsigned char {
// including data loss, unreported corruption, deadlocks, and more.
class Logger {
public:
size_t kDoNotSupportGetLogFileSize = (std::numeric_limits<size_t>::max)();
static constexpr size_t kDoNotSupportGetLogFileSize = SIZE_MAX;

explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL)
: closed_(false), log_level_(log_level) {}
Expand Down

0 comments on commit 513aae1

Please sign in to comment.