diff --git a/db/db_impl/db_impl_write.cc b/db/db_impl/db_impl_write.cc index 709c93a5e..51edd14b4 100644 --- a/db/db_impl/db_impl_write.cc +++ b/db/db_impl/db_impl_write.cc @@ -1205,18 +1205,8 @@ IOStatus DBImpl::WriteToWAL(const WriteBatch& merged_batch, *log_used = logfile_number_; } total_log_size_ += log_entry.size(); -#if defined(__has_feature) -#if __has_feature(thread_sanitizer) if (with_db_mutex || with_log_mutex) { -#endif // __has_feature(thread_sanitizer) -#endif // defined(__has_feature) assert(alive_log_files_tail_ == alive_log_files_.rbegin()); -#if defined(__has_feature) -#if __has_feature(thread_sanitizer) - } -#endif // __has_feature(thread_sanitizer) -#endif // defined(__has_feature) - if (with_db_mutex || with_log_mutex) { assert(alive_log_files_tail_ != alive_log_files_.rend()); } LogFileNumberSize& last_alive_log = *alive_log_files_tail_;