summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-21 22:42:03 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-21 22:42:03 +0000
commit4a8bdca5491a437d390bc4733de97807259a093d (patch)
tree2c53c93e69a772993a8ae0d043a065af9b1a13ce /src
parent20cbc75bbbc6ccb21713dc6531b1731ce679804a (diff)
doc update
bump to 0.6 fix --forget history bug git-svn-id: file:///home/lennart/svn/public/syrep/trunk@68 07ea20a6-d2c5-0310-9e02-9ef735347d72
Diffstat (limited to 'src')
-rw-r--r--src/dbutil.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dbutil.c b/src/dbutil.c
index 09c092d..b13f244 100644
--- a/src/dbutil.c
+++ b/src/dbutil.c
@@ -189,6 +189,11 @@ uint32_t get_version_timestamp(struct syrep_db_context *c, uint32_t v) {
key.size = sizeof(version);
if ((ret = c->db_version_timestamp->get(c->db_version_timestamp, NULL, &key, &data, 0))) {
+
+ /* If the specific history entry was lost: return the epoch */
+ if (ret == DB_NOTFOUND)
+ return 0;
+
c->db_version_timestamp->err(c->db_version_timestamp, ret, "version_timestamp::get");
return (uint32_t) -1;
}