From 1aa3569ed8afe434ef0ae75799e962fe7f58b6d5 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 31 May 2004 23:47:36 +0000 Subject: [PATCH] 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. --- keydb_db3.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.2