[Groonga-commit] ranguba/rroonga at cc6480b [master] Avoid a crash when Record#inspct is called on exit

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jun 30 22:15:48 JST 2014


Kouhei Sutou	2014-06-30 22:15:48 +0900 (Mon, 30 Jun 2014)

  New Revision: cc6480b073c13de4f3892f08040c88c2eb502c30
  https://github.com/ranguba/rroonga/commit/cc6480b073c13de4f3892f08040c88c2eb502c30

  Message:
    Avoid a crash when Record#inspct is called on exit
    
    GitHub: fix #18
    
    Reported by Ippei Obayashi. Thanks!!!

  Modified files:
    lib/groonga/record.rb

  Modified: lib/groonga/record.rb (+5 -1)
===================================================================
--- lib/groonga/record.rb    2014-06-08 14:04:38 +0900 (16b24c5)
+++ lib/groonga/record.rb    2014-06-30 22:15:48 +0900 (aeaeaae)
@@ -352,7 +352,11 @@ module Groonga
 
     # @private
     def inspect
-      super.gsub(/>\z/, ", attributes: #{attributes.inspect}>")
+      if****@table*****?
+        super.gsub(/>\z/, " (closed)>")
+      else
+        super.gsub(/>\z/, ", attributes: #{attributes.inspect}>")
+      end
     end
 
     private
-------------- next part --------------
HTML����������������������������...
下载 



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