Browse Source

- Fix for bug: 'default section created when syncing'
- Section count synced correctly



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1243 fd59a12c-fef9-0310-b244-a6a79926bd2f

Hans Feldt 19 years ago
parent
commit
65a7cde3c2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      exec/ckpt.c

+ 3 - 0
exec/ckpt.c

@@ -2068,6 +2068,7 @@ static int recovery_checkpoint_open (
 		checkpoint->retention_timer = 0;
 		checkpoint->expired = 0;
 
+#if 0
 		/*
 		 * Add in default checkpoint section
 		 */
@@ -2087,6 +2088,7 @@ static int recovery_checkpoint_open (
 		assert(checkpoint_section->section_data);
 		memcpy(checkpoint_section->section_data, "Factory installed data\0", strlen("Factory installed data\0")+1);
 		checkpoint_section->expiration_timer = 0;
+#endif
 
 		if ((checkpoint->checkpoint_creation_attributes.creation_flags & (SA_CKPT_WR_ACTIVE_REPLICA | SA_CKPT_WR_ACTIVE_REPLICA_WEAK)) &&
 			(checkpoint->checkpoint_creation_attributes.creation_flags & SA_CKPT_CHECKPOINT_COLLOCATED) == 0) {
@@ -2682,6 +2684,7 @@ static int recovery_section_create (
 	list_init (&checkpoint_section->list);
 	list_add (&checkpoint_section->list,
 		&checkpoint->sections_list_head);
+	checkpoint->sectionCount += 1;
 
 error_exit:
 	return (error);