projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cscvs to tla changeset 74
[onak.git]
/
keydb_db3.c
diff --git
a/keydb_db3.c
b/keydb_db3.c
index cffdb15c07ef3217caf164cf23cb6c978f1d4dcf..7ca5312612c5264aaba5fb38124f840cf6cc271b 100644
(file)
--- a/
keydb_db3.c
+++ b/
keydb_db3.c
@@
-191,6
+191,7
@@
void initdb(void)
*/
void cleanupdb(void)
{
*/
void cleanupdb(void)
{
+ txn_checkpoint(dbenv, 0, 0, 0);
worddb->close(worddb, 0);
worddb = NULL;
dbconn->close(dbconn, 0);
worddb->close(worddb, 0);
worddb = NULL;
dbconn->close(dbconn, 0);
@@
-758,7
+759,10
@@
int dumpdb(char *filenamebase)
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));
+ }
close(fd);
close(fd);