]> git.samba.org - gd/samba-autobuild/.git/commit - source3/locking/share_mode_lock.c
smbd: Store share_entries in locking.tdb again
authorVolker Lendecke <vl@samba.org>
Tue, 14 Apr 2020 14:51:15 +0000 (16:51 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 15 May 2020 02:27:49 +0000 (02:27 +0000)
commit49951b283d98d81a2201341624b4bcdd3eba9ec4
tree9e36b5e994369eac3726acd0b3e211d7e29fac46
parent7bdd5ad4b5e73937ffbbb9b7365639e360733d95
smbd: Store share_entries in locking.tdb again

The "base on g_lock" patch is a slowdown because we do more tdb
operations. Getting share_entries.tdb back into locking.tdb tries to
speed things up again.

Now that we're based on g_lock we'll most likely use a different
method in order to spread the entries across multiple records.

It still maintains the sorted array of share modes within locking.tdb,
but not as part of the expensive ndr marshalling of the complete
array.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri May 15 02:27:49 UTC 2020 on sn-devel-184
source3/locking/share_mode_lock.c