Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
b05bfd74
Commit
b05bfd74
authored
Jul 23, 2013
by
Michal 'vorner' Vaner
Browse files
[2862] Minor: rename variable
Rename readers_subscribed_ to readers_group_subscribed_.
parent
0d8bee5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/auth_srv.cc
View file @
b05bfd74
...
...
@@ -307,7 +307,7 @@ public:
const
bool
done
);
/// Are we currently subscribed to the SegmentReader group?
bool
readers_subscribed_
;
bool
readers_
group_
subscribed_
;
private:
bool
xfrout_connected_
;
AbstractXfroutClient
&
xfrout_client_
;
...
...
@@ -324,7 +324,7 @@ AuthSrvImpl::AuthSrvImpl(AbstractXfroutClient& xfrout_client,
datasrc_clients_mgr_
(
io_service_
),
ddns_base_forwarder_
(
ddns_forwarder
),
ddns_forwarder_
(
NULL
),
readers_subscribed_
(
false
),
readers_
group_
subscribed_
(
false
),
xfrout_connected_
(
false
),
xfrout_client_
(
xfrout_client
)
{}
...
...
@@ -970,18 +970,18 @@ hasRemoteSegment(auth::DataSrcClientsMgr& mgr) {
void
AuthSrv
::
listsReconfigured
()
{
const
bool
has_remote
=
hasRemoteSegment
(
impl_
->
datasrc_clients_mgr_
);
if
(
has_remote
&&
!
impl_
->
readers_subscribed_
)
{
if
(
has_remote
&&
!
impl_
->
readers_
group_
subscribed_
)
{
impl_
->
config_session_
->
subscribe
(
"SegmentReader"
);
impl_
->
config_session_
->
setUnhandledCallback
(
boost
::
bind
(
&
AuthSrv
::
foreignCommand
,
this
,
_1
,
_2
,
_3
));
impl_
->
readers_subscribed_
=
true
;
}
else
if
(
!
has_remote
&&
impl_
->
readers_subscribed_
)
{
impl_
->
readers_
group_
subscribed_
=
true
;
}
else
if
(
!
has_remote
&&
impl_
->
readers_
group_
subscribed_
)
{
impl_
->
config_session_
->
unsubscribe
(
"SegmentReader"
);
impl_
->
config_session_
->
setUnhandledCallback
(
isc
::
config
::
ModuleCCSession
::
UnhandledCallback
());
impl_
->
readers_subscribed_
=
false
;
impl_
->
readers_
group_
subscribed_
=
false
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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