Commit 49228d7c authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[5070] Tweaked the next step check.

parent 11db0a3d
......@@ -711,8 +711,8 @@ AllocEngine::allocateUnreservedLeases6(ClientContext6& ctx) {
leases.push_back(lease);
return (leases);
} else if (ctx.callout_handle_ &&
(ctx.callout_handle_->getStatus() ==
CalloutHandle::NEXT_STEP_SKIP)) {
(ctx.callout_handle_->getStatus() !=
CalloutHandle::NEXT_STEP_CONTINUE)) {
// Don't retry when the callout status is next step skip.
break;
}
......@@ -2847,9 +2847,10 @@ AllocEngine::allocateUnreservedLease4(ClientContext4& ctx) {
if (new_lease) {
return (new_lease);
} else if (ctx.callout_handle_ &&
(ctx.callout_handle_->getStatus() ==
CalloutHandle::NEXT_STEP_SKIP)) {
// Don't retry when the callout status is next step skip.
(ctx.callout_handle_->getStatus() !=
CalloutHandle::NEXT_STEP_CONTINUE)) {
// Don't retry when the callout status is next step skip
// or next step drop.
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment