Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rare WAL handling crash (facebook#12899)
Summary: A crash test failure in log sync in DBImpl::WriteToWAL is due to a missed case in facebook#12734. Just need to apply similar logic from DBImpl::SyncWalImpl to check for an already closed WAL (nullptr writer). This is extremely rare because it only comes from failed Sync on a closed WAL. Pull Request resolved: facebook#12899 Test Plan: watch crash test Reviewed By: cbi42 Differential Revision: D60481652 Pulled By: pdillinger fbshipit-source-id: 4a176bb6a53dcf077f88344710a110c2f946c386
- Loading branch information