Skip to content

Commit

Permalink
clang-tidy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkub committed Apr 6, 2024
1 parent 7f4680d commit 99855ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/buffer/buffer_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ BufferPool::EvictionResult BufferPool::EvictBlocks(MemoryTag tag, idx_t extra_me

idx_t BufferPool::PurgeAgedBlocks(uint32_t max_age_sec) {
int64_t now = GetCoarseMonotonicMillisecondTimestamp();
int64_t limit = now - (max_age_sec * 1000);
int64_t limit = now - (static_cast<int64_t>(max_age_sec) * 1000);
idx_t purged_bytes = 0;
IterateUnloadableBlocks([&](BufferEvictionNode &node, const std::shared_ptr<BlockHandle> &handle) {
// We will unload this block regardless. But stop the iteration immediately afterward if this
Expand Down

0 comments on commit 99855ad

Please sign in to comment.