[Groonga-commit] pgroonga/pgroonga at 559da04 [master] Add WAL enabled check to reduce overhead on WAL disabled

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 5 23:17:54 JST 2017


Kouhei Sutou	2017-01-05 23:17:54 +0900 (Thu, 05 Jan 2017)

  New Revision: 559da043ca5ce663e368b836cb7e599465ce4094
  https://github.com/pgroonga/pgroonga/commit/559da043ca5ce663e368b836cb7e599465ce4094

  Message:
    Add WAL enabled check to reduce overhead on WAL disabled

  Modified files:
    src/pgrn-wal.c

  Modified: src/pgrn-wal.c (+3 -0)
===================================================================
--- src/pgrn-wal.c    2017-01-05 23:17:36 +0900 (c24f30f)
+++ src/pgrn-wal.c    2017-01-05 23:17:54 +0900 (80b7f0e)
@@ -868,6 +868,9 @@ PGrnWALApplyNeeded(PGrnWALApplyData *data)
 	LocationIndex currentOffset;
 	BlockNumber nBlocks;
 
+	if (!PGrnWALEnabled)
+		return false;
+
 	PGrnIndexStatusGetWALAppliedPosition(data->index,
 										 &currentBlock,
 										 &currentOffset);
-------------- next part --------------
HTML����������������������������...
Download 



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