]> git.sommitrealweird.co.uk Git - onak.git/commitdiff
cscvs to tla changeset 71
authorJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:36 +0000 (23:47 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:36 +0000 (23:47 +0000)
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

index 0f4239bd212b37cb8621ce46ed799d807a9d166e..7ca5312612c5264aaba5fb38124f840cf6cc271b 100644 (file)
@@ -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);