rocksdb/logging
Changyu Bi e91263edb9 Fix data race in AutoRollLogger (#12436)
Summary:
`logger_` can be destructed in `ResetLogger()` so we should access them under `mutex_`. Similarly `status_` can be updated only under `mutex_` or in constructor.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/12436

Test Plan: I tried running tsan crash test with log_file_time_to_roll = 2, but not able to repro yet. Will monitor internal crash tests.

Reviewed By: hx235

Differential Revision: D54916371

Pulled By: cbi42

fbshipit-source-id: 4a3e3b40fbc2ae242598afdbd4bed5fb8ccf8d65
2024-03-14 14:28:33 -07:00
..
auto_roll_logger.cc Fix data race in AutoRollLogger (#12436) 2024-03-14 14:28:33 -07:00
auto_roll_logger.h Fix data race in AutoRollLogger (#12436) 2024-03-14 14:28:33 -07:00
auto_roll_logger_test.cc
env_logger.h
env_logger_test.cc
event_logger.cc
event_logger.h
event_logger_test.cc
log_buffer.cc
log_buffer.h
logging.h