Commit a1e2170a authored by Mark Andrews's avatar Mark Andrews
Browse files

2250. [func] New flag 'memstatistics' to state whether the

                        memory statistics file should be written or not.
                        Additionally named's -m option will cause the
                        statistics file to be written. [RT #17113]
parent 05d2776f
2251. [placeholder]
2250. [func] New flag 'memstatistics' to state whether the
memory statistics file should be written or not.
Additionally named's -m option will cause the
statistics file to be written. [RT #17113]
2249. [bug] Only set Authentic Data bit if client requested
DNSSEC, per RFC 3655 [RT #17175]
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: globals.h,v 1.72 2007/06/19 23:46:59 tbox Exp $ */
/* $Id: globals.h,v 1.73 2007/09/26 03:22:43 marka Exp $ */
#ifndef NAMED_GLOBALS_H
#define NAMED_GLOBALS_H 1
......@@ -114,6 +114,7 @@ EXTERN const char * ns_g_username INIT(NULL);
EXTERN int ns_g_listen INIT(3);
EXTERN isc_time_t ns_g_boottime;
EXTERN isc_boolean_t ns_g_memstatistics INIT(ISC_FALSE);
#undef EXTERN
#undef INIT
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: main.c,v 1.157 2007/06/18 23:47:18 tbox Exp $ */
/* $Id: main.c,v 1.158 2007/09/26 03:22:43 marka Exp $ */
/*! \file */
......@@ -912,7 +912,8 @@ main(int argc, char *argv[]) {
isc_mem_stats(ns_g_mctx, stdout);
isc_mutex_stats(stdout);
}
if (memstats != NULL) {
if (ns_g_memstatistics && memstats != NULL) {
FILE *fp = NULL;
result = isc_stdio_open(memstats, "w", &fp);
if (result == ISC_R_SUCCESS) {
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.490 2007/09/12 01:09:07 each Exp $ */
/* $Id: server.c,v 1.491 2007/09/26 03:22:43 marka Exp $ */
/*! \file */
......@@ -3432,8 +3432,17 @@ load_configuration(const char *filename, ns_server_t *server,
obj = NULL;
if (options != NULL &&
cfg_map_get(options, "memstatistics-file", &obj) == ISC_R_SUCCESS)
cfg_map_get(options, "memstatistics", &obj) == ISC_R_SUCCESS)
ns_g_memstatistics = cfg_obj_asboolean(obj);
else
ns_g_memstatistics =
ISC_TF((isc_mem_debugging & ISC_MEM_DEBUGRECORD) != 0);
obj = NULL;
if (ns_config_get(maps, "memstatistics-file", &obj) == ISC_R_SUCCESS)
ns_main_setmemstats(cfg_obj_asstring(obj));
else if (ns_g_memstatistics)
ns_main_setmemstats("named.memstats");
else
ns_main_setmemstats(NULL);
......
......@@ -15,11 +15,11 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.5 2007/06/19 23:47:00 tbox Exp $
# $Id: clean.sh,v 1.6 2007/09/26 03:22:43 marka Exp $
#
# Clean up after cache cleaner tests.
#
rm -f dig.out.ns2
rm -f */named.memstats
......@@ -14,10 +14,11 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.5 2007/06/19 23:47:01 tbox Exp $
# $Id: clean.sh,v 1.6 2007/09/26 03:22:43 marka Exp $
rm -f dig.out.ns?.test*
rm -f nsupdate.out.test*
rm -f ns1/*.example.db
rm -f ns1/*.update.db
rm -f ns1/*.update.db.jnl
rm -f */named.memstats
......@@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.4 2007/06/19 23:47:02 tbox Exp $
# $Id: clean.sh,v 1.5 2007/09/26 03:22:43 marka Exp $
rm -f random.data
rm -f ns*/named.run
......@@ -25,3 +25,4 @@ rm -f ns3/dlvset-*
rm -f ns3/dsset-*
rm -f ns3/keyset-*
rm -f ns3/trusted.conf ns5/trusted.conf
rm -f */named.memstats
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.19 2007/06/19 23:47:02 tbox Exp $
# $Id: clean.sh,v 1.20 2007/09/26 03:22:43 marka Exp $
rm -f */K* */keyset-* */dsset-* */dlvset-* */signedkey-* */*.signed */trusted.conf */tmp*
rm -f ns1/root.db ns2/example.db ns3/secure.example.db
......@@ -25,4 +25,4 @@ rm -f ns2/private.secure.example.db
rm -f */example.bk
rm -f dig.out.*
rm -f random.data
rm -f ns2/dlv.db
rm -f */named.memstats
......@@ -13,9 +13,10 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.5 2007/06/19 23:47:02 tbox Exp $
# $Id: clean.sh,v 1.6 2007/09/26 03:22:43 marka Exp $
#
# Clean up after forward tests.
#
rm -f dig.out.*
rm -f */named.memstats
......@@ -15,10 +15,11 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.8 2007/06/19 23:47:03 tbox Exp $
# $Id: clean.sh,v 1.9 2007/09/26 03:22:43 marka Exp $
#
# Clean up after glue tests.
#
rm -f dig.out ns1/cache
rm -f */named.memstats
......@@ -15,6 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.5 2007/06/19 23:47:03 tbox Exp $
# $Id: clean.sh,v 1.6 2007/09/26 03:22:43 marka Exp $
rm -f ns1/named.conf ns1/myftp.db
rm -f */named.memstats
......@@ -15,10 +15,10 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.10 2007/06/19 23:47:03 tbox Exp $
# $Id: clean.sh,v 1.11 2007/09/26 03:22:44 marka Exp $
#
# Clean up after limits tests.
#
rm -f dig.out.*
rm -f */named.memstats
......@@ -15,6 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.4 2007/06/19 23:47:04 tbox Exp $
# $Id: clean.sh,v 1.5 2007/09/26 03:22:44 marka Exp $
rm -f dig.out
rm -f */named.memstats
......@@ -14,9 +14,10 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.4 2007/06/19 23:47:04 tbox Exp $
# $Id: clean.sh,v 1.5 2007/09/26 03:22:44 marka Exp $
rm -f named-compilezone
rm -f ns1/example.db.raw
rm -f ns2/example.db
rm -f dig.out.*
rm -f */named.memstats
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.11 2007/06/19 23:47:04 tbox Exp $
# $Id: clean.sh,v 1.12 2007/09/26 03:22:44 marka Exp $
#
# Clean up after zone transfer tests.
......@@ -23,4 +23,4 @@
rm -f ns3/example.bk dig.out.ns2 dig.out.ns3
rm -f ns2/example.db
rm -f */named.memstats
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.11 2007/06/19 23:47:04 tbox Exp $
# $Id: clean.sh,v 1.12 2007/09/26 03:22:44 marka Exp $
#
# Clean up after zone transfer tests.
......@@ -25,7 +25,4 @@ rm -f dig.out.ns1 dig.out.ns2 dig.out.ns1.after ns1/*.jnl ns2/*.jnl \
ns1/example.db ns1/update.db
rm -f ns2/example.bk
rm -f ns2/update.bk
rm -f */named.memstats
......@@ -15,11 +15,11 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.5 2007/06/19 23:47:04 tbox Exp $
# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $
#
# Clean up after relay transfer tests.
#
rm -f ns3/example.bk ns4/example.bk dig.out.ns2 dig.out.ns3 dig.out.ns4
rm -f */named.memstats
......@@ -14,9 +14,9 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.5 2007/06/19 23:47:05 tbox Exp $
# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $
rm -f dig.out.cyclic dig.out.fixed dig.out.random
rm -f ns2/root.bk
rm -f ns?/named.run ns?/named.core
rm -f */named.memstats
......@@ -15,9 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.6 2007/06/19 23:47:05 tbox Exp $
# $Id: clean.sh,v 1.7 2007/09/26 03:22:44 marka Exp $
rm -f *.dig *.good
rm -f */named.memstats
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.5 2007/06/19 23:47:05 tbox Exp $
# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $
rm -f reload.pid
......@@ -26,3 +26,4 @@ rm -f ns1/delegations.db
rm -f ns2/zone0*.db
rm -f ns2/zone0*.jnl
rm -f */named.memstats
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment