With the last commit we don't store the share mode entry count
anymore. With this commit we go one step further and avoid storing
it. If there's valid record in locking.tdb, there is a corresponding
record in share_entries.tdb, so there's no point storing that once
more explicitly.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
[string,charset(UTF8)] char *servicepath;
[string,charset(UTF8)] char *base_name;
[string,charset(UTF8)] char *stream_name;
- uint32 num_share_modes;
+ [skip] uint32 num_share_modes;
uint32 num_delete_tokens;
[size_is(num_delete_tokens)] delete_token delete_tokens[];
NTTIME old_write_time;
NDR_PRINT_DEBUG(share_mode_data, d);
}
+ /*
+ * We have a non-zero locking.tdb record that was correctly
+ * parsed. This means a share_entries.tdb entry exists,
+ * otherwise we'd have paniced before in
+ * share_mode_data_store()
+ */
+ d->num_share_modes = 1;
+
return d;
fail:
TALLOC_FREE(d);