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 22df03f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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,10 @@ 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";
assert(false);
}
};
table_cache_->ApplyToAllEntries(fn, {});
}
Expand Down

0 comments on commit 22df03f

Please sign in to comment.