Skip to content

Commit

Permalink
Report InvalidArgument IOStatus upstream in case of unknown work item…
Browse files Browse the repository at this point in the history
… type
  • Loading branch information
mszeszko-meta committed Dec 20, 2024
1 parent e7aa0bc commit 76cbdcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/backup/backup_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1346,8 +1346,8 @@ IOStatus BackupEngineImpl::Initialize() {
}
work_item.result.set_value(std::move(result));
} else {
ROCKS_LOG_INFO(options_.info_log, "Unknown work item type: %" PRIu64,
work_item.type);
result.io_status = IOStatus::InvalidArgument(
"Unknown work item type: " + std::to_string(work_item.type));
}
}
});
Expand Down

0 comments on commit 76cbdcd

Please sign in to comment.