diff options
author | Michael Adam <obnox@samba.org> | 2014-01-27 16:21:14 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-02-07 16:06:06 +0100 |
commit | 020fab300d2f4f19301eff19ad810c71f77bbb78 (patch) | |
tree | da759d9850da7156e99d55b43a6ac98ab66a035b /source3 | |
parent | a20c977c7a58a0c09d01bfa046c00fcd3f1462de (diff) | |
download | samba-020fab300d2f4f19301eff19ad810c71f77bbb78.tar.gz samba-020fab300d2f4f19301eff19ad810c71f77bbb78.tar.xz samba-020fab300d2f4f19301eff19ad810c71f77bbb78.zip |
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>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |