Whamcloud - gitweb
now objid<2 is say 'this new ost' not zero objid.
authorshadow <shadow>
Thu, 25 Dec 2008 06:30:22 +0000 (06:30 +0000)
committershadow <shadow>
Thu, 25 Dec 2008 06:30:22 +0000 (06:30 +0000)
Branch HEAD
b=17890
i=umka

lustre/mds/mds_lov.c

index 95d10a4..d0a2076 100644 (file)
@@ -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);