smbd: Use share_mode_data->num_share_modes as a boolean
authorVolker Lendecke <vl@samba.org>
Tue, 10 Dec 2019 17:15:40 +0000 (18:15 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 17 Dec 2019 22:40:32 +0000 (22:40 +0000)
commit9734bad37b8bc4b2815f2bff4c0f48d33fb76c4d
treeb16ae10eb3fc41b37c8c22a2773d63f6e76b4e41
parent42ce74994e98dda95c32d3fcbd66d825f6d84519
smbd: Use share_mode_data->num_share_modes as a boolean

This is a micro-commit showing that we don't actually need
share_mode_data->num_share_modes as a number *counting* the share mode
entries in share_entries.tdb anymore. Instead, we are only using it as
an indication for share_mode_lock_destructor() to see whether share
entries are around or not, i.e. whether it's worth keeping or deleting
the record in locking.tdb.

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