1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

mdssvc: don't fail mds_add_result() if result is not found in CNID set

Just skip adding the result to the pending results set, don't return an
error. Returning an error triggers an error at the MDSSVC RPC error which is NOT
what we want here.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2021-05-10 11:07:27 +02:00
parent e2486d76b6
commit 8847f46f75

View File

@ -567,7 +567,7 @@ bool mds_add_result(struct sl_query *slq, const char *path)
sizeof(uint64_t), sizeof(uint64_t),
cnid_comp_fn); cnid_comp_fn);
if (!found) { if (!found) {
return false; return true;
} }
} }