fix
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-08-07 21:07:45 -05:00
parent ca97620b44
commit 6e4ae2896b

View File

@ -177,7 +177,7 @@ encrypting_reader::encrypting_reader(
token)),
stop_requested_(stop_requested),
error_return_(error_return),
source_file_(utils::file::file::open_or_create_file(source_path)) {
source_file_(utils::file::file::open_or_create_file(source_path, true)) {
if (not source_file_) {
throw std::runtime_error("file open failed|src|" +
std::string{source_path});
@ -224,7 +224,7 @@ encrypting_reader::encrypting_reader(std::string_view encrypted_file_path,
token)),
stop_requested_(stop_requested),
error_return_(error_return),
source_file_(utils::file::file::open_or_create_file(source_path)) {
source_file_(utils::file::file::open_or_create_file(source_path, true)) {
if (not source_file_) {
throw std::runtime_error("file open failed|src|" +
std::string{source_path});
@ -261,7 +261,7 @@ encrypting_reader::encrypting_reader(
token)),
stop_requested_(stop_requested),
error_return_(error_return),
source_file_(utils::file::file::open_or_create_file(source_path)) {
source_file_(utils::file::file::open_or_create_file(source_path, true)) {
if (not source_file_) {
throw std::runtime_error("file open failed|src|" +
std::string{source_path});
@ -289,7 +289,7 @@ encrypting_reader::encrypting_reader(const encrypting_reader &reader)
stop_requested_(reader.stop_requested_),
error_return_(reader.error_return_),
source_file_(
utils::file::file::open_file(reader.source_file_.get_path())),
utils::file::file::open_file(reader.source_file_.get_path(), true)),
chunk_buffers_(reader.chunk_buffers_),
encrypted_file_name_(reader.encrypted_file_name_),
encrypted_file_path_(reader.encrypted_file_path_),