[Groonga-commit] groonga/groonga at 36a8a23 [master] logical_select: fix double close

Back to archive index

Kouhei Sutou null+****@clear*****
Mon May 21 17:33:43 JST 2018


Kouhei Sutou	2018-05-21 17:33:43 +0900 (Mon, 21 May 2018)

  New Revision: 36a8a23fbf305752a0cba6c026be090320bb2961
  https://github.com/groonga/groonga/commit/36a8a23fbf305752a0cba6c026be090320bb2961

  Message:
    logical_select: fix double close

  Modified files:
    plugins/sharding/logical_select.rb

  Modified: plugins/sharding/logical_select.rb (+2 -0)
===================================================================
--- plugins/sharding/logical_select.rb    2018-05-21 16:29:18 +0900 (ae8b3bf0c)
+++ plugins/sharding/logical_select.rb    2018-05-21 17:33:43 +0900 (e990fc239)
@@ -557,6 +557,7 @@ module Groonga
           if****@conte*****_sets.empty?
             result_set = HashTable.create(:flags => ObjectFlags::WITH_SUBREC,
                                           :key_type => first_shard.table)
+            @context.temporary_tables << result_set
             @context.dynamic_columns.each_initial do |dynamic_column|
               dynamic_column.apply(result_set)
             end
@@ -738,6 +739,7 @@ module Groonga
         private
         def filter_shard_all(expression_builder)
           if****@query*****? and****@filte*****?
+            @temporary_tables.delete(@target_table)
             add_result_set(@target_table, nil)
           else
             filter_table do |expression|
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180521/bbbfc3fc/attachment-0001.htm 



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