Mark Andrews
02bad0bd51
fix lock heirachy in zone_shutdown()
2000-12-29 13:20:46 +00:00
Brian Wellington
3f160155da
ISC_MUTEX_PROFILE can be set to enable basic mutex profiling. Running named
...
with -s prints the results.
2000-12-29 01:29:56 +00:00
Mark Andrews
253ab81bf2
642. [bug] Break the exit_check() race in the zone module.
...
[RT #598 ]
2000-12-29 01:04:10 +00:00
Brian Wellington
8e047d3b74
microoptimizations to make quantize/rmsize more efficient.
2000-12-29 01:02:07 +00:00
Brian Wellington
575737b964
Rewrite the name compression code to use a hashtable instead of an RBT and
...
avoid allocating memory in most cases. This increases performance by
about 225% on the rc query test (~305 q/s to 990 q/s).
2000-12-29 00:59:41 +00:00
Brian Wellington
4efa04801e
Remove DNS_COMPRESS_GLOBAL, since the only type of global compression
...
is GLOBAL14.
2000-12-29 00:54:36 +00:00
Brian Wellington
ce7994d137
reorder the pthread_create tests
2000-12-28 07:15:01 +00:00
Andreas Gustafsson
af5995e08f
remove unused variable
2000-12-28 03:04:35 +00:00
Mark Andrews
9f28451bca
641. [bug] $GENERATE caused a uninitialized link to be used.
...
[RT #595 ]
2000-12-28 02:31:20 +00:00
Andreas Gustafsson
2cb287d2f4
set mainline version to 9.2.0a0
2000-12-28 02:13:04 +00:00
Andreas Gustafsson
a110543bb4
include changes up to 640. in 9.1.0b2
2000-12-28 01:42:00 +00:00
Mark Andrews
de154f65f6
Ensure that ns_client_*() are only called from the client's task.
2000-12-28 01:29:09 +00:00
Brian Wellington
d780c35e54
remove all vestiges of 16 bit global compression
2000-12-28 00:43:12 +00:00
Mark Andrews
af5dc286ff
640. [bug] Memory leak in error path could cause
...
"mpctx->allocated == 0" failure. [RT #584 ]
2000-12-27 23:01:25 +00:00
David Lawrence
090432605e
isc_file_renameunique() set its result incorrectly if renaming failed; it used
...
the value of errno from an unlink() call, not from the rename() call.
2000-12-27 17:21:53 +00:00
Brian Wellington
ee303f481d
639. [bug] Reading entropy from the keyboard would sometimes fail.
...
[RT #591 ]
note: the entropy callback conventions should really be documented.
2000-12-27 00:11:26 +00:00
David Lawrence
801dceea23
Revert my last change. It was stupid, which I if I had been thinking clearly
...
I would have seen *before* I commited anything. So, include isc/thread.h,
isc/mutex.h and isc/condition.h even if ISC_PLATFORM_USETHREADS is not defined.
(What caused me to bother with this at all was a problem that I resolved
a few days ago by fixing configure ... though now that I think about it,
that probably means there is some other latent problem with inconsistent
definitions that could maybe be handled better. I'll look into it more
later, AFTER vacation.)
2000-12-26 21:45:08 +00:00
David Lawrence
bdcae3560b
Only include isc/thread.h, isc/mutex.h and isc/condition.h if
...
ISC_PLATFORM_USETHREADS is defined.
2000-12-26 21:12:25 +00:00
David Lawrence
8ab1d97093
sigh. "define" -> "defined". never make trivial changes without retesting.
2000-12-26 21:06:49 +00:00
David Lawrence
86b8c48576
638. [port] lib/isc/random.c needed to explicitly include
...
time.h explicitly to get a prototype for time() when
pthreads was not being used. [RT #592 ]
2000-12-26 21:02:14 +00:00
David Lawrence
125a916d1a
637. [port] Use isc_u?int64_t instead of (unsigned) long long in
...
lib/isc/print.c. Also allow lib/isc/print.c to
be compiled even if the platform does not need it.
[RT #592 ]
Also cleaned up some const issues.
2000-12-26 21:00:41 +00:00
David Lawrence
0b3427d15c
636. [port] Shut up MSVC++ about a possible loss of precision
...
in the ISC__BUFFER_PUTUINT*() macros. [RT #592 ]
This is the basically the same change made to buffer.c before the macros
were created:
revision 1.18
date: 1999/09/23 17:54:57; author: tale; state: Exp; lines: +4 -4
Shut up MSVC++ compiler warning about loss of precision when assigning
8 bits masked out of a 32 bit int to individual bytes.
Also, an #if 0 around "#define ISC_BUFFER_USEINLINE" was removed, per the
ISC coding style, and instead a comment was used to disable the definition.
2000-12-26 20:51:14 +00:00
David Lawrence
2115bc7d64
636. [port] Shut up MSVC++ about a possible loss of precision
...
in the ISC__BUFFER_PUTUINT*() macros. [RT #592 ]
This is the basically the same change made to buffer.c before the macros
were created:
revision 1.18
date: 1999/09/23 17:54:57; author: tale; state: Exp; lines: +4 -4
Shut up MSVC++ compiler warning about loss of precision when assigning
8 bits masked out of a 32 bit int to individual bytes.
Also, an #if 0 around "#define ISC_BUFFER_USEINLINE" was removed, per the
ISC coding style, and instead a comment was used to disable the definition.
2000-12-26 20:18:50 +00:00
Brian Wellington
02e3821450
635. [bug] Reloading a server with a configured blackhole list
...
would cause an assertion. [RT #590 ]
2000-12-26 09:48:41 +00:00
Brian Wellington
5bb8c225cd
the last change was missing a )
2000-12-26 09:34:51 +00:00
David Lawrence
054e999be3
#include <config.h>
2000-12-23 22:02:49 +00:00
David Lawrence
85d10fda1b
Some cvs screwage resulted in revision 1.201, which looked for pthread_create
...
in libc_r for FreeBSD, being backed out when I checked in 1.202, which was
only supposed to be adding rlim_t checking.
2000-12-23 21:56:01 +00:00
David Lawrence
f4ed5931a4
the log config pointer was not initialized to NULL as it should be
2000-12-23 19:24:18 +00:00
David Lawrence
f8da2d9583
634. [bug] A log file will completely stop being written when
...
it reaches the maximum size in all cases, not just
when versioning is also enabled. [RT #570 ]
2000-12-23 19:23:48 +00:00
David Lawrence
9a2574531e
Also look in libc for pthread_create before deciding the system doesn't
...
have pthreads support. Not all systems have libpthread (eg, BSD/OS).
Many compiler options that were not particular to whether threads were being
used were being set in a threads-specific block, meaning they didn't get
set at all if threads were not being used.
ISC_PLATFORM_USETHREADS could end up still defined even if threading was
later disabled, such as if pthread_create was not found.
2000-12-23 18:27:43 +00:00
David Lawrence
fdb2cda3ed
633. [port] Cope with rlim_t missing on BSD/OS systems. [RT #575 ]
2000-12-23 02:47:43 +00:00
David Lawrence
17012a8797
632. [port] Cope with rlim_t missing on BSD/OS systems. [RT #575 ]
2000-12-23 02:46:34 +00:00
Brian Wellington
88842f17b8
regenerate
2000-12-23 00:26:37 +00:00
Brian Wellington
c424b3d796
freebsd needs to check libc_r for pthread_create
2000-12-23 00:26:24 +00:00
Andreas Gustafsson
6094a77749
632. [bug] The index array of the journal file was
...
corrupted as it was written to disk.
2000-12-23 00:10:30 +00:00
Andreas Gustafsson
642e583687
...and in two different ways, at that
2000-12-22 23:47:00 +00:00
Andreas Gustafsson
e0a90d7579
journal index array was corrupted on write
2000-12-22 23:37:03 +00:00
Andreas Gustafsson
e4c6adf028
check-instincludes.sh could not be run due to incorrect working directory
2000-12-22 23:05:17 +00:00
Andreas Gustafsson
029ce2f952
need #include <dns/rdataset.h> and <dns/rdatastruct.h>
2000-12-22 23:01:56 +00:00
Brian Wellington
2374f16f5d
missing ISC_LANG_ENDDECLS
2000-12-22 22:56:55 +00:00
Andreas Gustafsson
16093c228e
added UNUSED() macro
2000-12-22 21:17:59 +00:00
Brian Wellington
8dc3d2006f
631. [port] Build without thread support on systems without
...
pthreads.
2000-12-22 20:57:09 +00:00
Brian Wellington
b49fb818f6
regenerate
2000-12-22 20:51:33 +00:00
Brian Wellington
489b762926
- if pthreads are not found, build a nonthreaded version
...
- check for pthread_attr_getstacksize
2000-12-22 20:50:05 +00:00
Brian Wellington
b6ec7affc6
regenerate
2000-12-22 20:07:15 +00:00
Brian Wellington
99d731dbbe
remove cruft remaining from sanitizing away nonthreaded version
2000-12-22 20:06:48 +00:00
Andreas Gustafsson
0ad8ee89c5
more request shutdown logic fixes from Mark
2000-12-22 19:39:01 +00:00
Andreas Gustafsson
f131164c62
incorrect root hint directory
2000-12-22 18:57:18 +00:00
Andreas Gustafsson
d1efbb15f9
previous change removed too much code
2000-12-22 18:32:06 +00:00
Andreas Gustafsson
4c1fee4236
don't turn on ISC_MEM_BDEBUGRECORD by default
2000-12-22 18:30:26 +00:00