OpenClovis / SAFplus-Availability-Scalability-Platform

Middleware that provides libraries, GUI, and code generator to design multi-node (clustered) applications that are highly available, redundant, and scalable. Provides sub-second node and application fault detection and failover, and useful application libraries including distributed hash tables (checkpoint), event, logging, and communications. Implements SA-Forum APIs where applicable. Used anywhere reliability is a must -- like telecom, wireless, defense and enterprise computing. Download stable release with installer from: ftp.openclovis.com
www.openclovis.com
GNU General Public License v2.0
19 stars 13 forks source link

saCkptCheckpointWrite(), saCkptSectionOverwrite(), saCkptActiveReplicaSet() always passed even if the checkpoint was opened in read mode #116

Closed hungta closed 10 years ago

hungta commented 10 years ago

The checkpoint was opened in read mode using saCkptCheckpointOpen() with checkpointOpenFlags = SA_CKPT_CHECKPOINT_CREATE | SA_CKPT_CHECKPOINT_READ This is wrong. Only checkpoint opened in WRITE mode is to invoke saCkptCheckpointWrite(), saCkptSectionOverwrite() or saCkptActiveReplicaSet(). Otherwise, SA_AIS_ERR_ACCESS should be returned in this case.

This issue seen in both 6.0 and 6.1