Skip to content

Commit

Permalink
Linter complaints.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbi42 committed Sep 14, 2023
1 parent c48d5d6 commit f882f6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions db/arena_wrapped_db_iter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
namespace ROCKSDB_NAMESPACE {

inline static SequenceNumber GetSeqNum(const DBImpl* db, const Snapshot* s) {
if (s)
if (s) {
return static_cast_with_check<const SnapshotImpl>(s)->number_;
else
} else {
return db->GetLatestSequenceNumber();
}
}

Status ArenaWrappedDBIter::GetProperty(std::string prop_name,
Expand Down
2 changes: 1 addition & 1 deletion table/internal_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class InternalIteratorBase : public Cleanable {
// files and create new range tombstone iterators during scanning. It will use
// `read_seqno` as the sequence number for creating new range tombstone
// iterators.
virtual void SetRangeDelReadSeqno(SequenceNumber /* read_seqno */){};
virtual void SetRangeDelReadSeqno(SequenceNumber /* read_seqno */) {}

// An iterator is either positioned at a key/value pair, or
// not valid. This method returns true iff the iterator is valid.
Expand Down

0 comments on commit f882f6d

Please sign in to comment.