Skip to content

Commit

Permalink
Not like this
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin committed Dec 20, 2021
1 parent 7ad346f commit 4b12475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/parquet/parquet_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ ParquetReader::ParquetReader(ClientContext &context_p, string file_name_p, const
if (!ObjectCache::ObjectCacheEnabled(context_p)) {
metadata = LoadMetadata(allocator, *file_handle);
} else {
auto metadata = ObjectCache::GetObjectCache(context_p).Get<ParquetFileMetadataCache>(file_name);
metadata = ObjectCache::GetObjectCache(context_p).Get<ParquetFileMetadataCache>(file_name);
if (!metadata || (last_modify_time + 10 >= metadata->read_time)) {
metadata = LoadMetadata(allocator, *file_handle);
ObjectCache::GetObjectCache(context_p).Put(file_name, metadata);
Expand Down

0 comments on commit 4b12475

Please sign in to comment.