From 020fab300d2f4f19301eff19ad810c71f77bbb78 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 27 Jan 2014 16:21:14 +0100 Subject: 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 Reviewed-by: Stefan Metzmacher --- source3/rpc_client/cli_netlogon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index 9e3c1bd30e..746c7b6480 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -70,7 +70,7 @@ NTSTATUS rpccli_pre_open_netlogon_creds(void) global_db = db_open(talloc_autofree_context(), fname, 0, TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDWR|O_CREAT, 0600, DBWRAP_LOCK_ORDER_2, - DBWRAP_FLAG_NONE); + DBWRAP_FLAG_OPTIMIZE_READONLY_ACCESS); if (global_db == NULL) { TALLOC_FREE(frame); return NT_STATUS_NO_MEMORY; -- cgit