Skip to content

Commit

Permalink
Add dbg message
Browse files Browse the repository at this point in the history
  • Loading branch information
hx235 committed Nov 18, 2024
1 parent d329626 commit fb3feee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions db/db_impl/db_impl_debug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef NDEBUG
#include <iostream>

#include "db/blob/blob_file_cache.h"
#include "db/column_family.h"
Expand Down Expand Up @@ -379,7 +379,11 @@ void DBImpl::TEST_VerifyNoObsoleteFilesCached(
uint64_t file_number;
GetUnaligned(reinterpret_cast<const uint64_t*>(key.data()), &file_number);
// Assert file is in live/quarantined set
assert(live_and_quar_files.find(file_number) != live_and_quar_files.end());
if (live_and_quar_files.find(file_number) != live_and_quar_files.end()) {
std::cerr << "File " << file_number << " is not live nor quarantined"
<< std::endl;
assert(false);
}
};
table_cache_->ApplyToAllEntries(fn, {});
}
Expand Down

0 comments on commit fb3feee

Please sign in to comment.