mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
mdssvc: use a helper variable in mds_add_result()
No change in behaviour. 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:
parent
d37462d79a
commit
e2486d76b6
@ -554,17 +554,19 @@ bool mds_add_result(struct sl_query *slq, const char *path)
|
|||||||
|
|
||||||
ino64 = sb.st_ex_ino;
|
ino64 = sb.st_ex_ino;
|
||||||
if (slq->cnids) {
|
if (slq->cnids) {
|
||||||
|
bool found;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check whether the found element is in the requested
|
* Check whether the found element is in the requested
|
||||||
* set of IDs. Note that we're faking CNIDs by using
|
* set of IDs. Note that we're faking CNIDs by using
|
||||||
* filesystem inode numbers here
|
* filesystem inode numbers here
|
||||||
*/
|
*/
|
||||||
ok = bsearch(&ino64,
|
found = bsearch(&ino64,
|
||||||
slq->cnids,
|
slq->cnids,
|
||||||
slq->cnids_num,
|
slq->cnids_num,
|
||||||
sizeof(uint64_t),
|
sizeof(uint64_t),
|
||||||
cnid_comp_fn);
|
cnid_comp_fn);
|
||||||
if (!ok) {
|
if (!found) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user