Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
637
Issues
637
List
Boards
Labels
Service Desk
Milestones
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
0e27dac0
Commit
0e27dac0
authored
Oct 19, 2001
by
Andreas Gustafsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spacing
parent
059a29a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lib/dns/adb.c
lib/dns/adb.c
+10
-10
No files found.
lib/dns/adb.c
View file @
0e27dac0
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: adb.c,v 1.18
2 2001/08/30 05:52:14 marka
Exp $ */
/* $Id: adb.c,v 1.18
3 2001/10/19 01:29:41 gson
Exp $ */
/*
* Implementation notes
...
...
@@ -839,7 +839,7 @@ shutdown_names(dns_adb_t *adb) {
dns_adbname_t
*
name
;
dns_adbname_t
*
next_name
;
for
(
bucket
=
0
;
bucket
<
NBUCKETS
;
bucket
++
)
{
for
(
bucket
=
0
;
bucket
<
NBUCKETS
;
bucket
++
)
{
LOCK
(
&
adb
->
namelocks
[
bucket
]);
adb
->
name_sd
[
bucket
]
=
ISC_TRUE
;
...
...
@@ -879,7 +879,7 @@ shutdown_entries(dns_adb_t *adb) {
dns_adbentry_t
*
entry
;
dns_adbentry_t
*
next_entry
;
for
(
bucket
=
0
;
bucket
<
NBUCKETS
;
bucket
++
)
{
for
(
bucket
=
0
;
bucket
<
NBUCKETS
;
bucket
++
)
{
LOCK
(
&
adb
->
entrylocks
[
bucket
]);
adb
->
entry_sd
[
bucket
]
=
ISC_TRUE
;
...
...
@@ -2080,7 +2080,7 @@ timer_cleanup(isc_task_t *task, isc_event_t *ev) {
isc_stdtime_get
(
&
now
);
for
(
i
=
0
;
i
<
CLEAN_BUCKETS
;
i
++
)
{
for
(
i
=
0
;
i
<
CLEAN_BUCKETS
;
i
++
)
{
/*
* Call our cleanup routines.
*/
...
...
@@ -2212,13 +2212,13 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *timermgr,
result
=
isc_mutexblock_init
(
adb
->
namelocks
,
NBUCKETS
);
if
(
result
!=
ISC_R_SUCCESS
)
goto
fail1
;
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
{
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
{
ISC_LIST_INIT
(
adb
->
names
[
i
]);
adb
->
name_sd
[
i
]
=
ISC_FALSE
;
adb
->
name_refcnt
[
i
]
=
0
;
adb
->
irefcnt
++
;
}
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
{
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
{
ISC_LIST_INIT
(
adb
->
entries
[
i
]);
adb
->
entry_sd
[
i
]
=
ISC_FALSE
;
adb
->
entry_refcnt
[
i
]
=
0
;
...
...
@@ -2913,15 +2913,15 @@ dump_adb(dns_adb_t *adb, FILE *f, isc_boolean_t debug) {
adb
,
adb
->
erefcnt
,
adb
->
irefcnt
,
isc_mempool_getallocated
(
adb
->
nhmp
));
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
LOCK
(
&
adb
->
namelocks
[
i
]);
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
LOCK
(
&
adb
->
entrylocks
[
i
]);
/*
* Dump the names
*/
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
{
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
{
name
=
ISC_LIST_HEAD
(
adb
->
names
[
i
]);
if
(
name
==
NULL
)
continue
;
...
...
@@ -4054,7 +4054,7 @@ dns_adb_flush(dns_adb_t *adb) {
LOCK
(
&
adb
->
lock
);
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
{
for
(
i
=
0
;
i
<
NBUCKETS
;
i
++
)
{
/*
* Call our cleanup routines.
*/
...
...
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