Skip to content

Commit

Permalink
rename to multipart_upload
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm committed Oct 7, 2024
1 parent 6f1275b commit a84c380
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/io_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct IOadv {
// s3 storage class
const std::string storage_class;
const int multipart_chunksize;
bool do_multipart;
bool multipart_upload;

// base/5/12345.1

Expand Down
4 changes: 2 additions & 2 deletions src/io_adv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ IOadv::IOadv(const std::string &engine_path, const std::string &gpg_key_id,
tableSpace(reloid ? YezzeyGetRelationOriginTablespace(reloid) : "none"),
walg_bin_path(walg_bin_path), walg_config_path(walg_config_path),
use_gpg_crypto(use_gpg_crypto), yproxy_socket(yproxy_socket) {
do_multipart = true;
multipart_upload = true;
}

IOadv::IOadv(const std::string &engine_path, const std::string &gpg_key_id,
Expand All @@ -43,5 +43,5 @@ IOadv::IOadv(const std::string &engine_path, const std::string &gpg_key_id,
tableSpace(reloid ? YezzeyGetRelationOriginTablespace(reloid) : "none"),
walg_bin_path(walg_bin_path), walg_config_path(walg_config_path),
use_gpg_crypto(use_gpg_crypto), yproxy_socket(yproxy_socket) {
do_multipart = true;
multipart_upload = true;
}
2 changes: 1 addition & 1 deletion src/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int offloadRelationSegmentPath(Relation aorel, std::shared_ptr<IOadv> ioadv,

#endif

ioadv->do_multipart = fLen > multipart_threshold;
ioadv->multipart_upload = fLen > multipart_threshold;

while (progress < logicalEof) {
CHECK_FOR_INTERRUPTS();
Expand Down
2 changes: 1 addition & 1 deletion src/yproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ std::vector<char> YProxyWriter::ConstructPutRequest(std::string fileName) {
std::vector<std::pair<std::string, std::string>> settings = {
{"StorageClass", adv_->storage_class},
{"MultipartChunksize", std::to_string(adv_->multipart_chunksize)},
{"DoMultipart", adv_->do_multipart ? "1" : "0"},
{"MultipartUpload", adv_->multipart_upload ? "1" : "0"},
{"TableSpace", adv_->tableSpace},
};

Expand Down

0 comments on commit a84c380

Please sign in to comment.