Skip to content

Commit

Permalink
tier asynchronously when full
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboud committed Nov 15, 2021
1 parent 9b4f9ea commit 5fe5f89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/impl/autotierfs/fuseOps/write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ namespace fuse_ops {
if (priv->autotier_->strict_period())
return -error;
else {
bool tier_res = priv->autotier_->tier();
while (!tier_res && priv->autotier_->currently_tiering()) {
priv->autotier_->enqueue_work(ONESHOT, std::vector<std::string>{});
while (priv->autotier_->currently_tiering()) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}
Expand Down Expand Up @@ -110,8 +110,8 @@ namespace fuse_ops {
if (priv->autotier_->strict_period())
return -ENOSPC;
else {
bool tier_res = priv->autotier_->tier();
while (!tier_res && priv->autotier_->currently_tiering()) {
priv->autotier_->enqueue_work(ONESHOT, std::vector<std::string>{});
while (priv->autotier_->currently_tiering()) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}
Expand Down

0 comments on commit 5fe5f89

Please sign in to comment.