multithreading: return default error string when multithreading is

enabled

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
master
Ronnie Sahlberg 2021-10-13 08:01:17 +10:00
parent f55637619e
commit 52c7bd7bc5
1 changed files with 5 additions and 0 deletions

View File

@ -257,6 +257,11 @@ nfs_service(struct nfs_context *nfs, int revents)
char *
nfs_get_error(struct nfs_context *nfs)
{
#ifdef HAVE_MULTITHREADING
if(nfs->multithreading_enabled) {
return "nfs_get_error disabled while multithreading is active";
}
#endif /* HAVE_MULTITHREADING */
return rpc_get_error(nfs->rpc);
};