INN commit: branches/2.5 (doc/man/dbz.3 lib/dbz.c)
INN Commit
rra at isc.org
Mon Feb 8 21:06:58 UTC 2010
Date: Monday, February 8, 2010 @ 13:06:58
Author: iulius
Revision: 8969
dbzstore does return DBZSTORE_RESULT, not bool.
Patch from Heiko Schlichting.
Modified:
branches/2.5/doc/man/dbz.3
branches/2.5/lib/dbz.c
---------------+
doc/man/dbz.3 | 4 ++--
lib/dbz.c | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
Modified: doc/man/dbz.3
===================================================================
--- doc/man/dbz.3 2010-02-08 21:06:43 UTC (rev 8968)
+++ doc/man/dbz.3 2010-02-08 21:06:58 UTC (rev 8969)
@@ -19,8 +19,8 @@
.B "off_t dbzfetch(const HASH key)"
.B "bool dbzfetch(const HASH key, void *ivalue)"
.PP
-.B "bool dbzstore(const HASH key, off_t offset)"
-.B "bool dbzstore(const HASH key, void *ivalue)"
+.B "DBZSTORE_RESULT dbzstore(const HASH key, off_t offset)"
+.B "DBZSTORE_RESULT dbzstore(const HASH key, void *ivalue)"
.PP
.B "bool dbzsync(void)"
.PP
Modified: lib/dbz.c
===================================================================
--- lib/dbz.c 2010-02-08 21:06:43 UTC (rev 8968)
+++ lib/dbz.c 2010-02-08 21:06:58 UTC (rev 8969)
@@ -1037,7 +1037,10 @@
/*
* dbzstore - add an entry to the database
- * returns true for success and false for failure
+ *
+ * returns DBZSTORE_OK for success
+ * DBZSTORE_EXISTS for existing entries (duplicates)
+ * DBZSTORE_ERROR for other failure
*/
DBZSTORE_RESULT
dbzstore(const HASH key, off_t data)
More information about the inn-committers
mailing list