Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Wed, 27 Sep 2006 13:54:35 +0000 (13:54 +0000)
committerwangdi <wangdi>
Wed, 27 Sep 2006 13:54:35 +0000 (13:54 +0000)
Destroy cookie oa should include the log cookie, which cause runtests failed again
and again.

lustre/osc/osc_request.c

index 7c5cfbe..63a6aa4 100644 (file)
@@ -623,10 +623,10 @@ static int osc_destroy(struct obd_export *exp, struct obdo *oa,
                 req->rq_request_portal = OST_IO_PORTAL;
 
         body = lustre_msg_buf(req->rq_reqmsg, REQ_REC_OFF, sizeof(*body));
-        body->oa = *oa;
         if (oti != NULL && oa->o_valid & OBD_MD_FLCOOKIE)
                 memcpy(obdo_logcookie(oa), oti->oti_logcookies,
                        sizeof(*oti->oti_logcookies));
+        body->oa = *oa;
 
         osc_pack_capa(req, REQ_REC_OFF + 1, body, capa);