Whamcloud - gitweb
LU-16977 utils: access_log_reader accesses beyond batch array 54/51754/4
authorAlexandre Ioffe <aioffe@ddn.com>
Tue, 25 Jul 2023 02:08:26 +0000 (19:08 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 6 Sep 2023 06:20:55 +0000 (06:20 +0000)
commitbf5e5a89f9f4680c42f768b8474a3ea0bc014b54
tree1801961023ffac1150be96afcc82228fda178924
parent27ee4eaf1b4ec82d58cf03e6e3c715e8e294c5a6
LU-16977 utils: access_log_reader accesses beyond batch array

Fixed access_log_reader accesses sorted batch array beyond upper
boundary when batch-fraction 100%: consider fraction = 100% as a
special case, which requires no sorting and filtering.
Use a separate thread function to process 100% fraction case.
Made some minor changes using enum type to nicefy the code.

Test-Parameters: trivial testlist=sanity
Signed-off-by: Alexandre Ioffe <aioffe@ddn.com>
Change-Id: Iba1734b17dc901875f343c793688aec17b9f7a93
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51754
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/ofd_access_batch.c