Skip to content

Commit 0fe34b4

Browse files
committed
change name to force_full_download
1 parent 27359c2 commit 0fe34b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extension/httpfs/httpfs.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void TimestampToTimeT(timestamp_t timestamp, time_t &result) {
279279
HTTPFileHandle::HTTPFileHandle(FileSystem &fs, const OpenFileInfo &file, FileOpenFlags flags,
280280
unique_ptr<HTTPParams> params_p)
281281
: FileHandle(fs, file.path, flags), params(std::move(params_p)), http_params(params->Cast<HTTPFSParams>()),
282-
flags(flags), length(0), direct_complete_download(false), buffer_available(0), buffer_idx(0), file_offset(0), buffer_start(0), buffer_end(0) {
282+
flags(flags), length(0), force_full_download(false), buffer_available(0), buffer_idx(0), file_offset(0), buffer_start(0), buffer_end(0) {
283283
// check if the handle has extended properties that can be set directly in the handle
284284
// if we have these properties we don't need to do a head request to obtain them later
285285
if (file.extended_info) {
@@ -298,7 +298,7 @@ HTTPFileHandle::HTTPFileHandle(FileSystem &fs, const OpenFileInfo &file, FileOpe
298298
}
299299
auto direct_complete_download_entry = info.find("direct_complete_download");
300300
if (direct_complete_download_entry != info.end()) {
301-
direct_complete_download = direct_complete_download_entry->second.GetValue<bool>();
301+
force_full_download = direct_complete_download_entry->second.GetValue<bool>();
302302
}
303303
if (lm_entry != info.end() && etag_entry != info.end() && fs_entry != info.end()) {
304304
// we found all relevant entries (last_modified, etag and file size)
@@ -599,7 +599,7 @@ optional_idx TryParseContentLength(const HTTPHeaders &headers) {
599599
}
600600

601601
void HTTPFileHandle::LoadFileInfo() {
602-
if (initialized || direct_complete_download) {
602+
if (initialized || force_full_download) {
603603
// already initialized or we specifically do not want to perform a head request and just run a direct download
604604
return;
605605
}
@@ -689,7 +689,7 @@ void HTTPFileHandle::Initialize(optional_ptr<FileOpener> opener) {
689689
LoadFileInfo();
690690

691691
if (flags.OpenForReading()) {
692-
if ((http_params.state && length == 0) || direct_complete_download) {
692+
if ((http_params.state && length == 0) || force_full_download) {
693693
FullDownload(hfs, should_write_cache);
694694
}
695695
if (should_write_cache) {

extension/httpfs/include/httpfs.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class HTTPFileHandle : public FileHandle {
4848
idx_t length;
4949
time_t last_modified;
5050
string etag;
51-
bool direct_complete_download;
51+
bool force_full_download;
5252
bool initialized = false;
5353

5454
// When using full file download, the full file will be written to a cached file handle

0 commit comments

Comments
 (0)