Whamcloud - gitweb
mds_osc_destroy_orphan did an obd_destroy to the OSTs without setting
authorphil <phil>
Sun, 27 Jun 2004 16:30:01 +0000 (16:30 +0000)
committerphil <phil>
Sun, 27 Jun 2004 16:30:01 +0000 (16:30 +0000)
the group field, which LASSERTs on the OST.

lustre/mds/mds_unlink_open.c

index 2c1092a..c11328c 100644 (file)
@@ -138,8 +138,9 @@ static int mds_osc_destroy_orphan(struct mds_obd *mds,
         if (oa == NULL)
                 GOTO(out_free_memmd, rc = -ENOMEM);
         oa->o_id = lsm->lsm_object_id;
+        oa->o_gr = FILTER_GROUP_FIRST_MDS + mds->mds_num;
         oa->o_mode = inode->i_mode & S_IFMT;
-        oa->o_valid = OBD_MD_FLID | OBD_MD_FLTYPE;
+        oa->o_valid = OBD_MD_FLID | OBD_MD_FLTYPE | OBD_MD_FLGROUP;
 
         if (log_unlink && logcookies) {
                 oa->o_valid |= OBD_MD_FLCOOKIE;