smbd: Restructure brl_get_locks_readonly
authorVolker Lendecke <vl@samba.org>
Wed, 11 Sep 2013 11:36:54 +0000 (11:36 +0000)
committerStefan Metzmacher <metze@samba.org>
Sun, 6 Oct 2013 18:22:09 +0000 (20:22 +0200)
commit5d8f64c47d02c2aa58f3f0c87903bbd41d086aa0
tree09b1a428961c187a54294f3a6afe06929e664f84
parent2b3c5bea1c1512bc250481690b2d968491738629
smbd: Restructure brl_get_locks_readonly

This is step 1 to get rid of brl_get_locks_internal with its complex readonly
business. It also optimizes 2 things: First, it uses dbwrap_parse_record to
avoid a talloc and memcpy, and second it uses talloc_pooled_object.

And -- hopefully it is easier to understand the caching logic with
fsp->brlock_rec and the clustering escape.

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