Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
49228d7c
Commit
49228d7c
authored
Feb 27, 2017
by
Tomek Mrugalski
🛰
Browse files
[5070] Tweaked the next step check.
parent
11db0a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/alloc_engine.cc
View file @
49228d7c
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment