s3:locking: introduce share_mode_data->not_stored
authorStefan Metzmacher <metze@samba.org>
Mon, 22 Aug 2022 14:53:38 +0000 (16:53 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (00:34 +0000)
commit5bba79d639b6498073e3917b8112bb50b4aa0c39
treef72f00ae3b4f05b0540771eb8c55092da90ba552
parente1d1b3403e58f96947ebfaa3c633a75c3edb2cc8
s3:locking: introduce share_mode_data->not_stored

share_mode_data->fresh was very similar, but only set
and never used.

Now we remember 'not_stored' instead, the 'not_' is easier
as ndr_pull sets [skip] elements to 0.

We use this as indication to move the value to
memcache.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/librpc/idl/open_files.idl
source3/locking/share_mode_lock.c