From 1e93484a49b08e16172e343b04386c5f01191261 Mon Sep 17 00:00:00 2001 From: tappro Date: Tue, 31 Oct 2006 21:02:11 +0000 Subject: [PATCH] - assert on wrong transno during replay --- lustre/mdt/mdt_handler.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index e2f5407..b81489a 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -658,8 +658,7 @@ static int mdt_is_subdir(struct mdt_thread_info *info) ENTRY; LASSERT(o != NULL); - LASSERT(lu_object_assert_exists(&o->mot_obj.mo_lu)); - + repbody = req_capsule_server_get(pill, &RMF_MDT_BODY); /* @@ -1952,6 +1951,12 @@ static int mdt_req_handle(struct mdt_thread_info *info, /* If we're DISCONNECTing, the mdt_export_data is already freed */ if (rc == 0 && h->mh_opc != MDS_DISCONNECT) target_committed_to_req(req); + + if ((lustre_msg_get_flags(req->rq_reqmsg) & MSG_REPLAY) && + lustre_msg_get_transno(req->rq_reqmsg) == 0) { + DEBUG_REQ(D_ERROR, req, "transno is 0 during REPLAY\n"); + LBUG(); + } RETURN(rc); } -- 1.8.3.1