Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Jun 6, 2023
1 parent 09f4e2b commit 80ff271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/limestone/datastore_snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void datastore::create_snapshot() noexcept {
case log_entry::entry_type::remove_entry:
break; // skip
default:
LOG_LP(ERROR) << "never reach " << static_cast<int>(entry_type);
LOG(ERROR) << "never reach " << static_cast<int>(entry_type);
std::abort();
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/limestone/leveldb_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class leveldb_wrapper {
return status.ok();
}

void each(std::function<void(std::string_view, std::string_view)> fun) {
void each(std::function<void(std::string_view, std::string_view)>& fun) {
leveldb::Iterator* it = lvldb_->NewIterator(leveldb::ReadOptions()); // NOLINT (typical usage of leveldb)
for (it->SeekToFirst(); it->Valid(); it->Next()) {
leveldb::Slice key = it->key();
Expand Down

0 comments on commit 80ff271

Please sign in to comment.