From 8bebb380e8b581b41f3057c128d73094c1bde332 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 1 Mar 2010 14:28:22 +0100 Subject: s3: Add connections_forall_read() In a cluster, this makes a large difference: For r/w traverse, we have to do a fetch_locked on every record which for most users of connections_forall is just overkill. --- source3/include/proto.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index 18e60ca078..39aca5f76a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -431,6 +431,10 @@ int connections_forall(int (*fn)(struct db_record *rec, const struct connections_data *data, void *private_data), void *private_data); +int connections_forall_read(int (*fn)(const struct connections_key *key, + const struct connections_data *data, + void *private_data), + void *private_data); bool connections_init(bool rw); /* The following definitions come from lib/dbwrap_util.c */ -- cgit