From: James Simmons Date: Wed, 12 Dec 2012 15:57:41 +0000 (-0500) Subject: LU-1270 utils: properly initialize traverse param X-Git-Tag: 2.3.60~31 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=5402fce2759258a9f7bca4a8e3bb3a049525e3ec LU-1270 utils: properly initialize traverse param The find_param::mdtindex intialization was neglected. Signed-off-by: James Simmons Signed-off-by: Bobi Jam Change-Id: I3018c346a4bbab0d7da7c7efdeeb201098ac1e53 Reviewed-on: http://review.whamcloud.com/2411 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index eefd0ea..4404fae 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -1130,10 +1130,11 @@ static int common_param_init(struct find_param *param, char *path) return -ENOMEM; } - param->got_uuids = 0; - param->obdindexes = NULL; - param->obdindex = OBD_NOT_FOUND; - return 0; + param->got_uuids = 0; + param->obdindexes = NULL; + param->obdindex = OBD_NOT_FOUND; + param->mdtindex = OBD_NOT_FOUND; + return 0; } static void find_param_fini(struct find_param *param)