Whamcloud - gitweb
LU-17000 lod: fix lod_gen_component_id not wrapping 95/51795/6
authorTimothy Day <timday@amazon.com>
Fri, 28 Jul 2023 05:11:49 +0000 (05:11 +0000)
committerOleg Drokin <green@whamcloud.com>
Mon, 7 Aug 2023 03:50:55 +0000 (03:50 +0000)
commitce05a43ca0df8bb725dad2ba854ec7bd0a8eae5f
treea58378b3ea0e4960ef6e478d635ed51c85c4b544
parent15b94e08e84095195eee8c83be65c5f3361532e8
LU-17000 lod: fix lod_gen_component_id not wrapping

The end variable is set to SEQ_ID_MAX. The code
for checking whether to try and search the
remaining ids checks LCME_ID_MAX. Thus, it
never gets called. Change the check to look for
SEQ_ID_MAX. Also, change the start and end such
that all ids are checked once.

Addresses-Coverity-ID: 397902 ("Logically dead code")

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I1bd06b38314686f3d5a1c9ad42b38ad197f1a4e7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51795
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_object.c