summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/btree.c
diff options
context:
space:
mode:
authorMartin Hedenfal <martinh@cvs.openbsd.org>2010-07-01 06:12:00 +0000
committerMartin Hedenfal <martinh@cvs.openbsd.org>2010-07-01 06:12:00 +0000
commita0df943bf1ca77ba3f70b61c4c97ab06c340ecfa (patch)
tree6714050182e1e07abc45a42d8c695f84362c08b5 /usr.sbin/ldapd/btree.c
parent24350eea9c4409f49b7808f287dff02b38e53e13 (diff)
reset number of revisions after compaction
Diffstat (limited to 'usr.sbin/ldapd/btree.c')
-rw-r--r--usr.sbin/ldapd/btree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldapd/btree.c b/usr.sbin/ldapd/btree.c
index 1afe1012c06..13644f4db92 100644
--- a/usr.sbin/ldapd/btree.c
+++ b/usr.sbin/ldapd/btree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: btree.c,v 1.19 2010/07/01 05:13:11 martinh Exp $ */
+/* $OpenBSD: btree.c,v 1.20 2010/07/01 06:11:59 martinh Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -3059,6 +3059,7 @@ btree_compact(struct btree *bt)
if ((btc = btree_open_fd(fd, 0)) == NULL)
goto failed;
bcopy(&bt->meta, &btc->meta, sizeof(bt->meta));
+ btc->meta.revisions = 0;
if ((txnc = btree_txn_begin(btc, 0)) == NULL)
goto failed;