From: Jonathan McDowell Date: Mon, 31 May 2004 23:47:36 +0000 (+0000) Subject: cscvs to tla changeset 71 X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/1aa3569ed8afe434ef0ae75799e962fe7f58b6d5 cscvs to tla changeset 71 Author: noodles Date: 2003/04/20 22:19:11 Change keydb dump to not log an error when we run out of keys. --- diff --git a/keydb_db3.c b/keydb_db3.c index 0f4239b..7ca5312 100644 --- a/keydb_db3.c +++ b/keydb_db3.c @@ -759,7 +759,10 @@ int dumpdb(char *filenamebase) memset(&data, 0, sizeof(data)); ret = cursor->c_get(cursor, &key, &data, DB_NEXT); } - logthing(LOGTHING_ERROR, "Problem reading key: %s", db_strerror(ret)); + if (ret != DB_NOTFOUND) { + logthing(LOGTHING_ERROR, "Problem reading key: %s", + db_strerror(ret)); + } close(fd);