[Groonga-commit] groonga/groonga-query-log at 59ff9fc [master] check-crash: support no grn_init case

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 30 12:11:43 JST 2018


Kouhei Sutou	2018-08-30 12:11:43 +0900 (Thu, 30 Aug 2018)

  Revision: 59ff9fcfe13341240322d290e75531d1b0b9c1da
  https://github.com/groonga/groonga-query-log/commit/59ff9fcfe13341240322d290e75531d1b0b9c1da

  Message:
    check-crash: support no grn_init case

  Modified files:
    lib/groonga-query-log/command/check-crash.rb

  Modified: lib/groonga-query-log/command/check-crash.rb (+2 -0)
===================================================================
--- lib/groonga-query-log/command/check-crash.rb    2018-08-22 10:14:58 +0900 (80b254f)
+++ lib/groonga-query-log/command/check-crash.rb    2018-08-30 12:11:43 +0900 (04ecb0f)
@@ -275,6 +275,8 @@ module GroongaQueryLog
             @running_processes[entry.pid] = process
           when /\Agrn_fin \((\d+)\)\z/
             n_leaks = $1.to_i
+            @running_processes[entry.pid] ||=
+              GroongaProcess.new(entry.pid, Time.at(0), path)
             process = @running_processes[entry.pid]
             process.n_leaks = n_leaks
             process.last_time = entry.timestamp
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180830/e2c4fc4e/attachment.htm 



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