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
8f4e6ef3
Commit
8f4e6ef3
authored
Nov 13, 2012
by
JINMEI Tatuya
Browse files
[2459] some more comments about datasrc locking. suggested by muks.
parent
38880a0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/auth_srv.cc
View file @
8f4e6ef3
...
...
@@ -651,9 +651,10 @@ AuthSrvImpl::processNormalQuery(const IOMessage& io_message, Message& message,
local_edns
->
setUDPSize
(
AuthSrvImpl
::
DEFAULT_LOCAL_UDPSIZE
);
message
.
setEDNS
(
local_edns
);
}
// Get access to data source client list through the holder and keep the
// holder until the processing and rendering is done to avoid inter-thread
// race.
// Get access to data source client list through the holder and keep
// the holder until the processing and rendering is done to avoid
// race with any other thread(s) such as the background loader.
auth
::
DataSrcClientsMgr
::
Holder
datasrc_holder
(
datasrc_clients_mgr_
);
try
{
...
...
@@ -688,6 +689,9 @@ AuthSrvImpl::processNormalQuery(const IOMessage& io_message, Message& message,
return
(
true
);
// The message can contain some data from the locked resource. But outside
// this method, we touch only the RCode of it, so it should be safe.
// Lock on datasrc_clients_mgr_ acquired by datasrc_holder is
// released here upon its deletion.
}
bool
...
...
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