mdscli: correct handling of in-progress searches
commit61c951e063ecf98c6b61e03885eaa6d4a48f763b
authorRalph Boehme <slow@samba.org>
Thu, 20 Apr 2023 13:12:49 +0000 (20 15:12 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 24 Jul 2023 16:15:16 +0000 (24 16:15 +0000)
tree15d9adf0b94404fb48ee3661708d4bd610f6f3d8
parent424af98c894b20b36fb7f7081caab1b8634c7633
mdscli: correct handling of in-progress searches

If a query is still being processed on the server and there no results yet,
macOS returns 0x23.

For now just implements this as dumb polling once a second in mdsearch and the
Python bindings.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Jul 24 16:15:16 UTC 2023 on atb-devel-224
source3/rpc_client/cli_mdssvc.c
source3/rpc_client/py_mdscli.c
source3/utils/mdsearch.c