Skip to content

Commit 33f576b

Browse files
committed
vendor: Update vendored sources to duckdb/duckdb@95cc516
Do not get file handle unnecessarily. (duckdb/duckdb#17698)
1 parent 27d589d commit 33f576b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/duckdb/src/function/table/version/pragma_version.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef DUCKDB_PATCH_VERSION
2-
#define DUCKDB_PATCH_VERSION "1-dev65"
2+
#define DUCKDB_PATCH_VERSION "1-dev67"
33
#endif
44
#ifndef DUCKDB_MINOR_VERSION
55
#define DUCKDB_MINOR_VERSION 3
@@ -8,10 +8,10 @@
88
#define DUCKDB_MAJOR_VERSION 1
99
#endif
1010
#ifndef DUCKDB_VERSION
11-
#define DUCKDB_VERSION "v1.3.1-dev65"
11+
#define DUCKDB_VERSION "v1.3.1-dev67"
1212
#endif
1313
#ifndef DUCKDB_SOURCE_ID
14-
#define DUCKDB_SOURCE_ID "4e0a953228"
14+
#define DUCKDB_SOURCE_ID "95cc51601b"
1515
#endif
1616
#include "duckdb/function/table/system_functions.hpp"
1717
#include "duckdb/main/database.hpp"

src/duckdb/src/storage/caching_file_system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ BufferHandle CachingFileHandle::Read(data_ptr_t &buffer, idx_t &nr_bytes) {
113113

114114
// If we can't seek, we can't use the cache for these calls,
115115
// because we won't be able to seek over any parts we skipped by reading from the cache
116-
if (!external_file_cache.IsEnabled() || !GetFileHandle().CanSeek()) {
116+
if (!external_file_cache.IsEnabled() || !CanSeek()) {
117117
result = external_file_cache.GetBufferManager().Allocate(MemoryTag::EXTERNAL_FILE_CACHE, nr_bytes);
118118
buffer = result.Ptr();
119119
nr_bytes = NumericCast<idx_t>(GetFileHandle().Read(buffer, nr_bytes));

0 commit comments

Comments
 (0)