From 5e307fe31e6ad26eff1b9f50f20073367b34ef9d Mon Sep 17 00:00:00 2001 From: Muni Bajpai Date: Wed, 15 Mar 2006 20:46:08 +0000 Subject: [PATCH] Fix the innacurate dataSize in the Checkpoint Read response reported by Bjorn. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@949 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/ckpt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exec/ckpt.c b/exec/ckpt.c index a58c0571..479df7bd 100644 --- a/exec/ckpt.c +++ b/exec/ckpt.c @@ -2896,6 +2896,7 @@ static void message_handler_req_exec_ckpt_sectionread ( struct saCkptCheckpointSection *ckptCheckpointSection = 0; int sectionSize = 0; SaAisErrorT error = SA_AIS_OK; + res_lib_ckpt_sectionread.dataRead = 0; log_printf (LOG_LEVEL_DEBUG, "Executive request for section read.\n"); @@ -2948,6 +2949,10 @@ error_exit: res_lib_ckpt_sectionread.header.size = sizeof (struct res_lib_ckpt_sectionread) + sectionSize; res_lib_ckpt_sectionread.header.id = MESSAGE_RES_CKPT_CHECKPOINT_SECTIONREAD; res_lib_ckpt_sectionread.header.error = error; + + if (sectionSize != 0) { + res_lib_ckpt_sectionread.dataRead = sectionSize; + } openais_conn_send_response ( req_exec_ckpt_sectionread->source.conn,