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
feebb258
Commit
feebb258
authored
Jul 23, 2013
by
Michal 'vorner' Vaner
Browse files
[2862] Handle only mapped segments
Instead of generically any segment that is not local.
parent
b05bfd74
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/auth_srv.cc
View file @
feebb258
...
...
@@ -946,7 +946,7 @@ AuthSrv::setTCPRecvTimeout(size_t timeout) {
namespace
{
bool
has
Remote
Segment
(
auth
::
DataSrcClientsMgr
&
mgr
)
{
has
Mapped
Segment
(
auth
::
DataSrcClientsMgr
&
mgr
)
{
auth
::
DataSrcClientsMgr
::
Holder
holder
(
mgr
);
const
std
::
vector
<
dns
::
RRClass
>&
classes
(
holder
.
getClasses
());
BOOST_FOREACH
(
const
dns
::
RRClass
&
rrclass
,
classes
)
{
...
...
@@ -955,7 +955,7 @@ hasRemoteSegment(auth::DataSrcClientsMgr& mgr) {
const
std
::
vector
<
DataSourceStatus
>&
states
(
list
->
getStatus
());
BOOST_FOREACH
(
const
datasrc
::
DataSourceStatus
&
status
,
states
)
{
if
(
status
.
getSegmentState
()
!=
datasrc
::
SEGMENT_UNUSED
&&
status
.
getSegmentType
()
!
=
"
local
"
)
status
.
getSegmentType
()
=
=
"
mapped
"
)
// We use some segment and it's not a local one, so it
// must be remote.
return
true
;
...
...
@@ -969,7 +969,7 @@ hasRemoteSegment(auth::DataSrcClientsMgr& mgr) {
void
AuthSrv
::
listsReconfigured
()
{
const
bool
has_remote
=
has
Remote
Segment
(
impl_
->
datasrc_clients_mgr_
);
const
bool
has_remote
=
has
Mapped
Segment
(
impl_
->
datasrc_clients_mgr_
);
if
(
has_remote
&&
!
impl_
->
readers_group_subscribed_
)
{
impl_
->
config_session_
->
subscribe
(
"SegmentReader"
);
impl_
->
config_session_
->
...
...
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