s3:rpc_client: optimize the netlogon_creds_cli.tdb for read-only access
authorMichael Adam <obnox@samba.org>
Mon, 27 Jan 2014 15:21:14 +0000 (16:21 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 7 Feb 2014 15:06:06 +0000 (16:06 +0100)
commit020fab300d2f4f19301eff19ad810c71f77bbb78
treeda759d9850da7156e99d55b43a6ac98ab66a035b
parenta20c977c7a58a0c09d01bfa046c00fcd3f1462de
s3:rpc_client: optimize the netlogon_creds_cli.tdb for read-only access

Usually a record in this DB will be written once and then read
many times by winbindd processes on multiple nodes (when run in
a cluster). In order not to introduce a big performance penalty
with the increased correctness achieved by storing the netlogon
creds, in a cluster setup, we should activate ctdb's read only
record copies on this db.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_client/cli_netlogon.c