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
583
Issues
583
List
Boards
Labels
Service Desk
Milestones
Merge Requests
112
Merge Requests
112
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
5455f30a
Commit
5455f30a
authored
May 31, 2001
by
Brian Wellington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
842. [func] 'rndc flush' now takes an optional view.
parent
b804d77a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
9 deletions
+28
-9
CHANGES
CHANGES
+2
-0
bin/named/control.c
bin/named/control.c
+2
-2
bin/named/include/named/server.h
bin/named/include/named/server.h
+2
-2
bin/named/server.c
bin/named/server.c
+19
-3
bin/rndc/rndc.c
bin/rndc/rndc.c
+3
-2
No files found.
CHANGES
View file @
5455f30a
842. [func] 'rndc flush' now takes an optional view.
841. [bug] When sdb modules were not declared threadsafe, their
create and destroy functions were not serialized.
...
...
bin/named/control.c
View file @
5455f30a
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: control.c,v 1.
6 2001/05/08 04:09:3
6 bwelling Exp $ */
/* $Id: control.c,v 1.
7 2001/05/31 01:21:0
6 bwelling Exp $ */
#include <config.h>
...
...
@@ -107,7 +107,7 @@ ns_control_docommand(isccc_sexpr_t *message, isc_buffer_t *text) {
isc_log_setdebuglevel
(
ns_g_lctx
,
ns_g_debuglevel
);
result
=
ISC_R_SUCCESS
;
}
else
if
(
command_compare
(
command
,
NS_COMMAND_FLUSH
))
{
result
=
ns_server_flushcache
(
ns_g_server
);
result
=
ns_server_flushcache
(
ns_g_server
,
command
);
}
else
if
(
command_compare
(
command
,
NS_COMMAND_STATUS
))
{
result
=
ns_server_status
(
ns_g_server
,
text
);
}
else
{
...
...
bin/named/include/named/server.h
View file @
5455f30a
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.h,v 1.5
6 2001/05/08 04:09:41
bwelling Exp $ */
/* $Id: server.h,v 1.5
7 2001/05/31 01:21:09
bwelling Exp $ */
#ifndef NAMED_SERVER_H
#define NAMED_SERVER_H 1
...
...
@@ -160,7 +160,7 @@ ns_server_setdebuglevel(ns_server_t *server, char *args);
* Flush the server's cache(s)
*/
isc_result_t
ns_server_flushcache
(
ns_server_t
*
server
);
ns_server_flushcache
(
ns_server_t
*
server
,
char
*
args
);
/*
* Report the server's status.
...
...
bin/named/server.c
View file @
5455f30a
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.32
7 2001/05/28 05:17:00 marka
Exp $ */
/* $Id: server.c,v 1.32
8 2001/05/31 01:21:07 bwelling
Exp $ */
#include <config.h>
...
...
@@ -2758,21 +2758,37 @@ ns_server_setdebuglevel(ns_server_t *server, char *args) {
}
isc_result_t
ns_server_flushcache
(
ns_server_t
*
server
)
{
ns_server_flushcache
(
ns_server_t
*
server
,
char
*
args
)
{
char
*
ptr
,
*
viewname
;
dns_view_t
*
view
;
isc_boolean_t
flushed
=
ISC_FALSE
;
isc_result_t
result
;
/* Skip the command name. */
ptr
=
next_token
(
&
args
,
"
\t
"
);
if
(
ptr
==
NULL
)
return
(
ISC_R_UNEXPECTEDEND
);
/* Look for the view name. */
viewname
=
next_token
(
&
args
,
"
\t
"
);
result
=
isc_task_beginexclusive
(
server
->
task
);
RUNTIME_CHECK
(
result
==
ISC_R_SUCCESS
);
for
(
view
=
ISC_LIST_HEAD
(
server
->
viewlist
);
view
!=
NULL
;
view
=
ISC_LIST_NEXT
(
view
,
link
))
{
if
(
viewname
!=
NULL
&&
strcasecmp
(
viewname
,
view
->
name
)
!=
0
)
continue
;
result
=
dns_view_flushcache
(
view
);
if
(
result
!=
ISC_R_SUCCESS
)
goto
out
;
flushed
=
ISC_TRUE
;
}
result
=
ISC_R_SUCCESS
;
if
(
flushed
)
result
=
ISC_R_SUCCESS
;
else
result
=
ISC_R_FAILURE
;
out:
isc_task_endexclusive
(
server
->
task
);
return
(
result
);
...
...
bin/rndc/rndc.c
View file @
5455f30a
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc.c,v 1.6
0 2001/05/22 00:56:01
bwelling Exp $ */
/* $Id: rndc.c,v 1.6
1 2001/05/31 01:21:10
bwelling Exp $ */
/*
* Principal Author: DCL
...
...
@@ -112,7 +112,8 @@ command is one of the following:\n\
trace Increment debugging level by one.
\n
\
trace level Change the debugging level.
\n
\
notrace Set debugging level to 0.
\n
\
flush Flushes the server's cache.
\n
\
flush Flushes all of the server's caches.
\n
\
flush [view] Flushes the server's cache for a view.
\n
\
status Display status of the server.
\n
\
*restart Restart the server.
\n
\
\n
\
...
...
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