locking: Remove a call to dbwrap_record_get_value()
authorVolker Lendecke <vl@samba.org>
Sun, 17 Nov 2019 13:50:51 +0000 (14:50 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 22 Nov 2019 23:57:46 +0000 (23:57 +0000)
commitffe4933c776bc89ab8a6bb09f74288b8bf7b1310
tree4637c3c465a789378bc2ba10a1a3483d3260bdce
parent1dc3c168245366d219fc8c3b116f4f5904a9cb07
locking: Remove a call to dbwrap_record_get_value()

This makes a copy of the record values TDB_DATA.

In this case, it is okay: We only do a dbwrap_record_storev modifying
the value that we retrieved from the share_mode_lock destructor.

This patch is necessary because the next commit will make the "value"
argument to the dbwrap_do_locked() callback the only source of the
record value. Thus for a nested share_mode_do_locked() call we have to
maintain the record value explicitly.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c