[Groonga-commit] groonga/groonga-query-log at 9164900 [master] check-crash: support the first continued session crashed case

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 27 14:23:54 JST 2018


Kouhei Sutou	2018-03-27 14:23:54 +0900 (Tue, 27 Mar 2018)

  New Revision: 916490012fcd654e194793a2a1ed8c0a9caa0eb9
  https://github.com/groonga/groonga-query-log/commit/916490012fcd654e194793a2a1ed8c0a9caa0eb9

  Message:
    check-crash: support the first continued session crashed case

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

  Modified: lib/groonga-query-log/command/check-crash.rb (+3 -1)
===================================================================
--- lib/groonga-query-log/command/check-crash.rb    2018-03-08 16:06:36 +0900 (00265e3)
+++ lib/groonga-query-log/command/check-crash.rb    2018-03-27 14:23:54 +0900 (71fc4d8)
@@ -164,8 +164,10 @@ module GroongaQueryLog
             @running_processes.delete(entry.pid)
             p [:leak, n_leask, entry.timestamp.iso8601] unless n_leaks.zero?
           else
+            @running_processes[entry.pid] ||=
+              GroongaProcess.new(entry.pid, Time.at(0), path)
             process = @running_processes[entry.pid]
-            process.last_time = entry.timestamp if process
+            process.last_time = entry.timestamp
           end
         end
 
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180327/892367e5/attachment.htm 



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