being over the specified size limit.
1543. [bug] Logging using "versions unlimited" did not work.
bind to the specified transfer source and TSIG was
being used. [RT #10120]
-1544. [placeholder] rt10147
-
-1543. [placeholder] rt10147
+1544. [bug] Named would logged a single entry to a file despite it
+ being over the specified size limit.
+
+1543. [bug] Logging using "versions unlimited" did not work.
1542. [placeholder]
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: logconf.c,v 1.33 2001/10/11 01:16:15 gson Exp $ */
+/* $Id: logconf.c,v 1.34 2004/03/03 05:39:04 marka Exp $ */
#include <config.h>
if (versionsobj != NULL && cfg_obj_isuint32(versionsobj))
versions = cfg_obj_asuint32(versionsobj);
+ if (versionsobj != NULL && cfg_obj_isstring(versionsobj) &&
+ strcasecmp(cfg_obj_asstring(versionsobj), "unlimited") == 0)
+ versions = ISC_LOG_ROLLINFINITE;
if (sizeobj != NULL &&
cfg_obj_isuint64(sizeobj) &&
cfg_obj_asuint64(sizeobj) < ISC_OFFSET_MAXIMUM)
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.h,v 1.60 2003/01/16 03:59:26 marka Exp $ */
+/* $Id: result.h,v 1.61 2004/03/03 05:39:05 marka Exp $ */
#ifndef ISC_RESULT_H
#define ISC_RESULT_H 1
#define ISC_R_SOFTQUOTA 55 /* soft quota reached */
#define ISC_R_BADNUMBER 56 /* not a valid number */
#define ISC_R_DISABLED 57 /* disabled */
+#define ISC_R_MAXSIZE 58 /* max size */
/*
* Not a result code: the number of results.
*/
-#define ISC_R_NRESULTS 58
+#define ISC_R_NRESULTS 59
ISC_LANG_BEGINDECLS
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.c,v 1.81 2003/04/11 07:25:28 marka Exp $ */
+/* $Id: log.c,v 1.82 2004/03/03 05:39:04 marka Exp $ */
/* Principal Authors: DCL */
* Version control.
*/
if (result == ISC_R_SUCCESS && roll) {
+ if (FILE_VERSIONS(channel) == ISC_LOG_ROLLNEVER)
+ return (ISC_R_MAXSIZE);
result = roll_log(channel);
if (result != ISC_R_SUCCESS) {
if ((channel->flags & ISC_LOG_OPENERR) == 0) {
if (FILE_STREAM(channel) == NULL) {
result = isc_log_open(channel);
if (result != ISC_R_SUCCESS &&
+ result != ISC_R_MAXSIZE &&
(channel->flags & ISC_LOG_OPENERR) == 0) {
syslog(LOG_ERR,
"isc_log_open '%s' failed: %s",
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.c,v 1.60 2003/01/16 03:59:25 marka Exp $ */
+/* $Id: result.c,v 1.61 2004/03/03 05:39:04 marka Exp $ */
#include <config.h>
"connection reset", /* 54 */
"soft quota reached", /* 55 */
"not a valid number", /* 56 */
- "disabled" /* 57 */
+ "disabled", /* 57 */
+ "max size" /* 58 */
};
#define ISC_RESULT_RESULTSET 2