[Groonga-commit] pgroonga/pgroonga at 877a75f [master] wal: add missing initialization of meta page special version

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Oct 29 00:59:56 JST 2016


Kouhei Sutou	2016-10-29 00:59:56 +0900 (Sat, 29 Oct 2016)

  New Revision: 877a75feb4ed87c1f0ef94e15846477c1924fdc2
  https://github.com/pgroonga/pgroonga/commit/877a75feb4ed87c1f0ef94e15846477c1924fdc2

  Message:
    wal: add missing initialization of meta page special version

  Modified files:
    src/pgrn_wal.c

  Modified: src/pgrn_wal.c (+3 -0)
===================================================================
--- src/pgrn_wal.c    2016-10-29 00:58:39 +0900 (8c51d01)
+++ src/pgrn_wal.c    2016-10-29 00:59:56 +0900 (7d91e9e)
@@ -49,6 +49,8 @@ typedef enum {
 	PGRN_WAL_ACTION_SET_SOURCES
 } PGrnWALAction;
 
+#define PGRN_WAL_META_PAGE_SPECIAL_VERSION 1
+
 typedef struct {
 	BlockNumber next;
 	BlockNumber max; /* TODO */
@@ -207,6 +209,7 @@ PGrnWALDataInitMeta(PGrnWALData *data)
 			(PGrnWALMetaPageSpecial *)PageGetSpecialPointer(data->meta.page);
 		data->meta.pageSpecial->next = PGRN_WAL_META_PAGE_BLOCK_NUMBER + 1;
 		data->meta.pageSpecial->max = 0;
+		data->meta.pageSpecial->version = PGRN_WAL_META_PAGE_SPECIAL_VERSION;
 	}
 	else
 	{
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index