Fix non-okay status being ignored in write path under two_write_queues_ (#12866)

Summary:
Context/Summary: see above, though the impact is small.

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

Test Plan: exiting UT

Reviewed By: anand1976

Differential Revision: D59782913

Pulled By: hx235

fbshipit-source-id: ec02843645cce49466bde602035d2e61c31965b8
This commit is contained in:
Hui Xiao 2024-07-16 10:55:08 -07:00 committed by Facebook GitHub Bot
parent 5aa675457e
commit 9e4ee7f0c6
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ Status DBImpl::WriteImpl(const WriteOptions& write_options,
// Requesting sync with two_write_queues_ is expected to be very rare. We
// hence provide a simple implementation that is not necessarily efficient.
if (two_write_queues_) {
if (status.ok() && two_write_queues_) {
if (manual_wal_flush_) {
status = FlushWAL(true);
} else {