dbzstore()
Heiko Schlichting
inn-workers at fu-berlin.de
Sun Jan 31 18:38:27 UTC 2010
dbzstore does return DBZSTORE_RESULT, not bool.
Heiko Schlichting Freie Universität Berlin
heiko at CIS.FU-Berlin.DE Zentraleinrichtung für Datenverarbeitung (ZEDAT)
Telefon +49 30 838-54327 Fabeckstraße 32
Telefax +49 30 838454327 14195 Berlin
-------------- next part --------------
commit 84f6379c98ee9888a21c2f3094a9ecd7c1d969d1
Author: Heiko Schlichting <heiko at fu-berlin.de>
Date: Sun Jan 31 00:43:36 2010 +0100
dbzstore does return DBZSTORE_RESULT, not bool.
diff --git a/doc/man/dbz.3 b/doc/man/dbz.3
index ea5a2cc..21ec009 100644
--- a/doc/man/dbz.3
+++ b/doc/man/dbz.3
@@ -19,8 +19,8 @@ dbzinit, dbzfresh, dbzagain, dbzclose, dbzexists, dbzfetch, dbzstore, dbzsync, d
.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
diff --git a/lib/dbz.c b/lib/dbz.c
index 99ebb18..497c76f 100644
--- a/lib/dbz.c
+++ b/lib/dbz.c
@@ -1037,7 +1037,9 @@ dbzfetch(const HASH key, off_t *value)
/*
* 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-workers
mailing list