From 1939c249389eab22bd3780a1449593cd480a0bc2 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 13 Jul 2005 20:08:13 +0000 Subject: [PATCH] defect 707 if checkpoint synchronize executedd with timeout=0, TIMEOUT error not returned git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@745 fd59a12c-fef9-0310-b244-a6a79926bd2f --- lib/ckpt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ckpt.c b/lib/ckpt.c index af304b4c..43a379c6 100644 --- a/lib/ckpt.c +++ b/lib/ckpt.c @@ -1574,6 +1574,10 @@ saCkptCheckpointSynchronize ( struct req_lib_ckpt_checkpointsynchronize req_lib_ckpt_checkpointsynchronize; struct res_lib_ckpt_checkpointsynchronize res_lib_ckpt_checkpointsynchronize; + if (timeout == 0) { + return (SA_AIS_ERR_TIMEOUT); + } + error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle, (void *)&ckptCheckpointInstance); if (error != SA_AIS_OK) { -- 2.39.5