summaryrefslogtreecommitdiffstats
path: root/source3/libads/krb5_setpw.c
diff options
context:
space:
mode:
authorShekhar Amlekar <samlekar@in.ibm.com>2014-01-16 11:10:56 -0800
committerJeremy Allison <jra@samba.org>2014-01-18 01:11:32 +0100
commitdad72a3b7ae310f8049cd76681d9d9d89ce6da52 (patch)
treed0675d1a27de63af7fbb04b85a166989236504f3 /source3/libads/krb5_setpw.c
parentde899754ac201c8a63646e1bc684f2a6a6e5c821 (diff)
downloadsamba-dad72a3b7ae310f8049cd76681d9d9d89ce6da52.tar.gz
samba-dad72a3b7ae310f8049cd76681d9d9d89ce6da52.tar.xz
samba-dad72a3b7ae310f8049cd76681d9d9d89ce6da52.zip
s3: rpc_server/srvsvc: Avoiding the loop around locking tdb traversal.
The current code for determining the number of open files iterates over the session list and for each session it traverses the locking tdb to get the open files. This scales badly for a large server with many sessions and open files. Instead, get the list of sessions first, and then determine the number of open files on all sessions in a single traversal of locking tdb. Signed-off-by: Shekhar Amlekar <samlekar@in.ibm.com> Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Jan 18 01:11:32 CET 2014 on sn-devel-104
Diffstat (limited to 'source3/libads/krb5_setpw.c')
0 files changed, 0 insertions, 0 deletions