Skip to content

Commit

Permalink
[2146] Code review change. To be merged.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinKyleJames committed Jan 9, 2024
1 parent 03eb431 commit 3892dc2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions s3/s3_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,13 +438,11 @@ namespace irods_s3 {
// for the key. Write the physical_path to object->physical_path().

auto path{std::filesystem::path(object->logical_path())};
std::string data_name{path.filename().string()};
std::string coll_name{path.parent_path().string()};
std::string query_string =
fmt::format(
"SELECT DATA_ID WHERE DATA_NAME = '{}' AND COLL_NAME = '{}'",
data_name,
coll_name);
path.filename().c_str(),
path.parent_path().c_str());
for(const auto& row : irods::query<rsComm_t>{_ctx.comm(), query_string}) {
std::string object_id = row[0];
std::reverse(object_id.begin(), object_id.end());
Expand Down

0 comments on commit 3892dc2

Please sign in to comment.