Skip to content

Commit

Permalink
squash with 'Prevent restage to higher tier'
Browse files Browse the repository at this point in the history
  • Loading branch information
alanking committed Dec 18, 2023
1 parent 7f1f5b0 commit b295fd8
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions storage_tiering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,15 +856,16 @@ namespace irods {
// do not queue movement if data is on minimum tier or lower
// TODO:: query for already queued movement?
if (source_resource_tier <= low_tier_resource_tier) {
rodsLog(LOG_DEBUG,
fmt::format("Migrating object [{}] from resource [{}] (tier [{}]) to resource [{}] (tier [{}]) "
"would move the object to a higher tier. Skipping restage.",
_object_path,
_source_resource,
source_resource_tier,
low_tier_resource_name,
low_tier_resource_tier)
.c_str());
rodsLog(
LOG_DEBUG,
fmt::format("Replica for object [{}] on resource [{}] (tier [{}]) already exists on the minimum "
"restage tier resource [{}] (tier [{}]) or an even lower tier. Skipping restage.",
_object_path,
_source_resource,
source_resource_tier,
low_tier_resource_name,
low_tier_resource_tier)
.c_str());
return;
}

Expand Down

0 comments on commit b295fd8

Please sign in to comment.