diff options
author | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-11 12:02:04 +0000 |
---|---|---|
committer | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-11 12:02:04 +0000 |
commit | bd69be7a587df5862cb59d681c1e6f082868569d (patch) | |
tree | 53b0a7f1e1d4e802a9f8fdac25eb59a32f53abf1 /usr.sbin/ldapd/ldapd.h | |
parent | 6f6839d748c5ede3f8fb892788751875f4a5cdb4 (diff) |
Wrap searches in a read-only transaction so it is guaranteed to see a
consistent snapshot of the database.
Also fixes a couple of format string errors for long long ints.
Diffstat (limited to 'usr.sbin/ldapd/ldapd.h')
-rw-r--r-- | usr.sbin/ldapd/ldapd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ldapd/ldapd.h b/usr.sbin/ldapd/ldapd.h index d6e573abbf5..9aebad24db6 100644 --- a/usr.sbin/ldapd/ldapd.h +++ b/usr.sbin/ldapd/ldapd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ldapd.h,v 1.2 2010/06/03 17:29:54 martinh Exp $ */ +/* $OpenBSD: ldapd.h,v 1.3 2010/06/11 12:02:03 martinh Exp $ */ /* * Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se> @@ -162,6 +162,8 @@ struct search { struct conn *conn; struct request *req; struct namespace *ns; + struct btree_txn *data_txn; + struct btree_txn *indx_txn; struct cursor *cursor; unsigned int nscanned, nmatched, ndups; time_t started_at; |