]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:locking: convert share_mode_lock.c to generate_unique_u64()
authorStefan Metzmacher <metze@samba.org>
Tue, 7 Jul 2020 09:49:27 +0000 (11:49 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 8 Jul 2020 09:42:40 +0000 (09:42 +0000)
commita618776ac4e097e27e3c766d996323b1d86a7241
tree5aff46fa012820632ebe86ccfc2918d0477cf373
parent6c68c75b2100ba95da9575350b3a9d14211a5cc7
s3:locking: convert share_mode_lock.c to generate_unique_u64()

Instead of a sequence number that gets incremented we just
need a value that's not reused.

The is a similar change like the commit before at the g_lock.c
layer.

I expect a similar performance improvement here, but
I don't know a specific benchmark test to check.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/librpc/idl/open_files.idl
source3/locking/share_mode_lock.c