From: shadow Date: Thu, 25 Dec 2008 06:30:22 +0000 (+0000) Subject: now objid<2 is say 'this new ost' not zero objid. X-Git-Tag: v1_9_140~49 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=34d4598bf0b65fa3622dac92ad780be876fe002e;p=fs%2Flustre-release.git now objid<2 is say 'this new ost' not zero objid. Branch HEAD b=17890 i=umka --- 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);