Whamcloud - gitweb
LU-12951 lmv: fix to return correct MDT count 13/36713/3
authorWang Shilong <wshilong@ddn.com>
Fri, 8 Nov 2019 04:05:32 +0000 (12:05 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Dec 2019 06:01:20 +0000 (06:01 +0000)
commit3aa8826aabc7ceb16ed5efc8606a243684274982
tree0cbe01fefb0ff93dc77dc42f5c3ea560259e2ca6
parent5c2d8eb040d957a1f04b343d677900591f47f94d
LU-12951 lmv: fix to return correct MDT count

@ltd_tgts_size could be larger than actual MDT count,
as we preallocate ltd_tgts and resize it if necessary.

Fix it to use @ld_tgt_count instead.

Change-Id: I1501fd965cc74223c7a77280aac64acdbbcf17f6
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/36713
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lmv/lmv_obd.c