From 34d4598bf0b65fa3622dac92ad780be876fe002e Mon Sep 17 00:00:00 2001 From: shadow Date: Thu, 25 Dec 2008 06:30:22 +0000 Subject: [PATCH] now objid<2 is say 'this new ost' not zero objid. Branch HEAD b=17890 i=umka --- lustre/mds/mds_lov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 95d10a4..d0a2076 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -429,7 +429,7 @@ static int mds_lov_get_objid(struct obd_device * obd, page = idx / OBJID_PER_PAGE(); off = idx % OBJID_PER_PAGE(); data = mds->mds_lov_page_array[page]; - if (data[off] == 0) { + if (data[off] < 2) { /* We never read this lastid; ask the osc */ struct obd_id_info lastid; __u32 size = sizeof(lastid); -- 1.8.3.1