From 5402fce2759258a9f7bca4a8e3bb3a049525e3ec Mon Sep 17 00:00:00 2001 From: James Simmons Date: Wed, 12 Dec 2012 10:57:41 -0500 Subject: [PATCH] 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 --- lustre/utils/liblustreapi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) -- 1.8.3.1