[Groonga-commit] groonga/groonga at 20395e9 [master] ii: reduce IO expire frequency

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 29 17:25:20 JST 2017


Kouhei Sutou	2017-12-29 17:25:20 +0900 (Fri, 29 Dec 2017)

  New Revision: 20395e941d9858696b2482e5c8f2a19b9d986e1a
  https://github.com/groonga/groonga/commit/20395e941d9858696b2482e5c8f2a19b9d986e1a

  Message:
    ii: reduce IO expire frequency

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+3 -1)
===================================================================
--- lib/ii.c    2017-12-29 15:16:06 +0900 (f8debec3f)
+++ lib/ii.c    2017-12-29 17:25:20 +0900 (aad77a766)
@@ -4500,7 +4500,9 @@ grn_ii_expire(grn_ctx *ctx, grn_ii *ii)
   /*
   grn_io_expire(ctx, ii->seg, 128, 1000000);
   */
-  grn_io_expire(ctx, ii->chunk, 0, 1000000);
+  if (ii->chunk->nmaps > ii->chunk->max_map_seg / 2) {
+    grn_io_expire(ctx, ii->chunk, 0, 1000000);
+  }
 }
 
 grn_rc
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171229/6fa876bb/attachment.htm 



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