rocksdb/logging
Akanksha Mahajan ce370d6b95 Close the Logger before rolling to next one in AutoRollLogger (#10488)
Summary:
Close the existing logger first to release the existing
handle before renaming the file using the file system.
Since `AutoRollLogger::Flush` pinned down the `logger_`, `logger_` can't be closed unless its
the last reference otherwise it  gives seg fault during Flush on file
that has been closed.

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

Test Plan: CircleCI jobs

Reviewed By: ajkr

Differential Revision: D38469249

Pulled By: akankshamahajan15

fbshipit-source-id: dfbdb89b4ac37639aefcc503526f24753445fd3f
2022-08-05 16:23:44 -07:00
..
auto_roll_logger.cc Close the Logger before rolling to next one in AutoRollLogger (#10488) 2022-08-05 16:23:44 -07:00
auto_roll_logger.h
auto_roll_logger_test.cc Close the Logger before rolling to next one in AutoRollLogger (#10488) 2022-08-05 16:23:44 -07:00
env_logger.h Use EnvLogger instead of PosixLogger (#10436) 2022-08-01 14:37:18 -07:00
env_logger_test.cc
event_logger.cc
event_logger.h
event_logger_test.cc
log_buffer.cc Fix potential ambiguities in/around port/sys_time.h (#10045) 2022-05-24 18:20:17 -07:00
log_buffer.h Fix potential ambiguities in/around port/sys_time.h (#10045) 2022-05-24 18:20:17 -07:00
logging.h