Author: noodles
Date: 2003/04/20 22:19:11
Change keydb dump to not log an error when we run out of keys.
memset(&data, 0, sizeof(data));
ret = cursor->c_get(cursor, &key, &data, DB_NEXT);
}
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));
+ }