Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ protected ScanQueryMatcher(ExtendedCell startKey, ScanInfo scanInfo, ColumnTrack
}

/** Returns true if the cell is expired */
private static boolean isCellTTLExpired(final ExtendedCell cell, final long oldestTimestamp,
final long now) {
private static boolean isCellTTLExpired(final ExtendedCell cell, final long now) {
// Look for a TTL tag first. Use it instead of the family setting if
// found. If a cell has multiple TTLs, resolve the conflict by using the
// first tag encountered.
Expand Down Expand Up @@ -192,7 +191,7 @@ protected final MatchCode preCheck(ExtendedCell cell) {
return columns.getNextRowOrNextColumn(cell);
}
// check if the cell is expired by cell TTL
if (isCellTTLExpired(cell, this.oldestUnexpiredTS, this.now)) {
if (isCellTTLExpired(cell, this.now)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @Apache9, it appears that oldestTimestamp is not being used in isCellTTLExpired and it's confusing, so we can remove this parameter?

return MatchCode.SKIP;
}
return null;
Expand Down
Loading