mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
aaf7aaa6e2
The .get_oplock_break is dependent on the pthread code, which is only used when creating a SMB connection with multi_threaded=True. Add an explicit error to the .get_oplock_break() if someone tries to use it in non-multithreaded mode. Initializing self->oplock_waiter in non-multithreaded mode is similarly redundant if the API can never be used. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892 BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676 Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>