From 74814e8e2db1c2e1c082c0ce2a31659892a45a29 Mon Sep 17 00:00:00 2001 From: huanghua Date: Thu, 29 Jan 2009 09:30:45 +0000 Subject: [PATCH] Branch HEAD b=18318 i=rahul i=pravin shrink close reply in resend case. --- lustre/mdt/mdt_open.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lustre/mdt/mdt_open.c b/lustre/mdt/mdt_open.c index e2e8802..96b1d8d 100644 --- a/lustre/mdt/mdt_open.c +++ b/lustre/mdt/mdt_open.c @@ -1234,8 +1234,11 @@ int mdt_close(struct mdt_thread_info *info) req_capsule_set_size(info->mti_pill, &RMF_LOGCOOKIES, RCL_SERVER, info->mti_mdt->mdt_max_cookiesize); rc = req_capsule_server_pack(info->mti_pill); - if (mdt_check_resent(info, mdt_reconstruct_generic, NULL)) + if (mdt_check_resent(info, mdt_reconstruct_generic, NULL)) { + if (rc == 0) + mdt_shrink_reply(info); RETURN(lustre_msg_get_status(req->rq_repmsg)); + } /* Continue to close handle even if we can not pack reply */ if (rc == 0) { -- 1.8.3.1