From 56bda7982b92c811fc2331d8e821f6a02d2c86c9 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 13 Jul 2005 20:00:58 +0000 Subject: [PATCH] defect 676 sectionoverwrite doesn't return correct error when checkpoint section doesn't exist git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@733 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/ckpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/ckpt.c b/exec/ckpt.c index d1d7c93d..1fae34c2 100644 --- a/exec/ckpt.c +++ b/exec/ckpt.c @@ -3093,11 +3093,12 @@ static int message_handler_req_lib_ckpt_sectionoverwrite (struct conn_info *conn struct iovec iovecs[2]; struct saCkptCheckpoint *checkpoint; struct res_lib_ckpt_sectionoverwrite res_lib_ckpt_sectionoverwrite; + SaAisErrorT error = SA_AIS_ERR_NOT_EXIST; log_printf (LOG_LEVEL_DEBUG, "Section overwrite from API fd %d\n", conn_info->fd); checkpoint = ckpt_checkpoint_find_global (&req_lib_ckpt_sectionoverwrite->checkpointName); - if (checkpoint && (checkpoint->expired == 0)) { + if (checkpoint && (checkpoint->expired == 0) && (checkpoint->active_replica_set == 1)) { /* * checkpoint opened is writeable mode so send message to cluster */