From 4a8bdca5491a437d390bc4733de97807259a093d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Sep 2004 22:42:03 +0000 Subject: 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 --- src/dbutil.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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; } -- cgit