mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
vfs_aio_pthread: don't crash without a pthreadpool
During 'samba-tool ntacl sysvolreset' and similar. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
0e9f1eec5a
commit
3694f2ce62
@ -468,6 +468,13 @@ static int aio_pthread_openat_fn(vfs_handle_struct *handle,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (fsp->conn->sconn->pool == NULL) {
|
||||
/*
|
||||
* a threadpool is required for async support
|
||||
*/
|
||||
aio_allow_open = false;
|
||||
}
|
||||
|
||||
if (fsp->conn->sconn->client->server_multi_channel_enabled) {
|
||||
/*
|
||||
* This module is not compatible with multi channel yet.
|
||||
|
Loading…
Reference in New Issue
Block a user