Whamcloud - gitweb
- don't pass pid in case of slave creation.
authoralex <alex>
Sun, 7 Aug 2005 14:22:58 +0000 (14:22 +0000)
committeralex <alex>
Sun, 7 Aug 2005 14:22:58 +0000 (14:22 +0000)
  checking for non-zero fid is a wrong practice

lustre/mds/handler.c

index 8308adb..e807ae8 100644 (file)
@@ -2577,7 +2577,8 @@ repeat:
                 
                 mds_inode2id(obd, &id, new->d_inode, fid);
                 mds_update_inode_ids(obd, new->d_inode, handle, &id, 
-                                     obdo_id(&body->oa));
+                                     body->oa.o_valid & OBD_MD_FLID ?
+                                     NULL : obdo_id(&body->oa));
 
                 /* initializing o_fid after it is allocated. */
                 repbody->oa.o_fid = id_fid(&id);