Skip to content

fix(server): use LOG_EVERY_T for OOM error logging#7220

Open
bitborne wants to merge 1 commit intodragonflydb:mainfrom
bitborne:fix-server-todos
Open

fix(server): use LOG_EVERY_T for OOM error logging#7220
bitborne wants to merge 1 commit intodragonflydb:mainfrom
bitborne:fix-server-todos

Conversation

@bitborne
Copy link
Copy Markdown

Replace LOG_FIRST_N with LOG_EVERY_T to limit OOM log frequency to at most once per second, as intended by the TODO.

Changes

  • Replace LOG_FIRST_N(ERROR, 16) with LOG_EVERY_T(ERROR, 1)
  • Remove resolved TODO comment

Test plan

  • ninja dragonfly compiles successfully
  • pre-commit hooks pass

Replace LOG_FIRST_N with LOG_EVERY_T to limit OOM log frequency
to at most once per second, as intended by the TODO.

Signed-off-by: Schatten <czhengt@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants