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 internal_repo_rocksdb (-8794174668376270091) (#12114) 2023-12-01 11:10:30 -08:00
env_logger.h Group SST write in flush, compaction and db open with new stats (#11910) 2023-12-29 15:29:23 -08:00
env_logger_test.cc internal_repo_rocksdb (-8794174668376270091) (#12114) 2023-12-01 11:10:30 -08:00
event_logger.cc
event_logger.h
event_logger_test.cc
log_buffer.cc
log_buffer.h Remove unnecessary, confusing 'extern' (#12300) 2024-01-29 10:38:08 -08:00
logging.h