rocksdb/logging
sdong 7260347fd1 Auto Roll Logger to add some extra checking to avoid segfault. (#5623)
Summary:
AutoRollLogger sets GetStatus() to be non-OK if the log file fails to be created and logger_ is set to null. It is left to the caller to check the status before calling function to this class. There is no harm to create another null checking to logger_ before we using it, so that in case users mis-use the logger, they don't get a segfault.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5623

Test Plan: Run all existing tests.

Differential Revision: D16466251

fbshipit-source-id: 262b885eec28bf741d91e9191c3cb5ff964e1bce
2019-07-24 15:14:40 -07:00
..
auto_roll_logger_test.cc Fix regression bug of Auto rolling logger when handling failures (#5622) 2019-07-24 12:08:40 -07:00
auto_roll_logger.cc Auto Roll Logger to add some extra checking to avoid segfault. (#5623) 2019-07-24 15:14:40 -07:00
auto_roll_logger.h Auto Roll Logger to add some extra checking to avoid segfault. (#5623) 2019-07-24 15:14:40 -07:00
env_logger_test.cc Implemented a file logger that uses WritableFileWriter (#5491) 2019-07-09 16:27:22 -07:00
env_logger.h Implemented a file logger that uses WritableFileWriter (#5491) 2019-07-09 16:27:22 -07:00
event_logger_test.cc Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
event_logger.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
event_logger.h Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
log_buffer.cc Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
log_buffer.h Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
logging.h Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
posix_logger.h Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00