[Groonga-commit] pgroonga/pgroonga at 667de37 [master] Reduce needless loop when VACUUM

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jul 14 22:26:01 JST 2015


Kouhei Sutou	2015-07-14 22:26:01 +0900 (Tue, 14 Jul 2015)

  New Revision: 667de3752b37dc373dde9cbbcba9c74b267e5a4c
  https://github.com/pgroonga/pgroonga/commit/667de3752b37dc373dde9cbbcba9c74b267e5a4c

  Message:
    Reduce needless loop when VACUUM

  Modified files:
    pgroonga.c

  Modified: pgroonga.c (+2 -0)
===================================================================
--- pgroonga.c    2015-07-10 17:12:06 +0900 (a874e27)
+++ pgroonga.c    2015-07-14 22:26:01 +0900 (ffdc5d1)
@@ -2531,6 +2531,8 @@ PGrnRemoveUnusedTables(void)
 		nameSize = grn_table_cursor_get_key(ctx, cursor, (void **)&name);
 		nameEnd = name + nameSize;
 		relationID = strtol(name + strlen(min), &nameEnd, 10);
+		if (nameEnd[0] == '.')
+			continue;
 		relation = RelationIdGetRelation(relationID);
 		if (relation)
 		{
-------------- next part --------------
HTML����������������������������...
Download 



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