[Groonga-commit] pgroonga/pgroonga at 8cfd25f [master] Set thread limit to use optimization

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sat Aug 27 21:53:19 JST 2016


Kouhei Sutou	2016-08-27 21:53:19 +0900 (Sat, 27 Aug 2016)

  New Revision: 8cfd25f6995a18d4ea321520ef71c3492576f080
  https://github.com/pgroonga/pgroonga/commit/8cfd25f6995a18d4ea321520ef71c3492576f080

  Message:
    Set thread limit to use optimization

  Modified files:
    src/pgroonga.c

  Modified: src/pgroonga.c (+8 -0)
===================================================================
--- src/pgroonga.c    2016-08-27 21:49:12 +0900 (c8cf3c8)
+++ src/pgroonga.c    2016-08-27 21:53:19 +0900 (66c7886)
@@ -196,6 +196,12 @@ static struct PGrnBuffers *buffers = &PGrnBuffers;
 static PGrnMatchSequentialSearchData matchSequentialSearchData;
 static PGrnPrefixRKSequentialSearchData prefixRKSequentialSearchData;
 
+static uint32_t
+PGrnGetThreadLimit(void *data)
+{
+	return 1;
+}
+
 static grn_encoding
 PGrnGetEncoding(void)
 {
@@ -370,6 +376,8 @@ _PG_init(void)
 
 	PGrnInitializeVariables();
 
+	grn_thread_set_get_limit_func(PGrnGetThreadLimit, NULL);
+
 	if (grn_init() != GRN_SUCCESS)
 		ereport(ERROR,
 				(errcode(ERRCODE_SYSTEM_ERROR),
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index