<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">YUKI Hiroshi <shimo****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2015-04-28 18:08:23 +0900 (Tue, 28 Apr 2015)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d">3afb045c649fecd9146255a1f8513b1bcc05ee9d</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Output more trace logs around last message timestamp</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#diff-0">lib/droonga/engine.rb</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/droonga/engine.rb (+12 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L150">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L151">151</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L152">152</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L153">153</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L154">154</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L155">155</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L156">156</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L161">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L162">162</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L163">163</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L164">164</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L165">165</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L166">166</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L167">167</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L168">168</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L169">169</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L170">170</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L172">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L173">173</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L174">174</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L175">175</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L176">176</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L177">177</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L178">178</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L179">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L180">180</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L181">181</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L182">182</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L183">183</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L184">184</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0L185">185</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R150">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R151">151</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R152">152</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R153">153</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R154">154</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R155">155</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R156">156</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R157">157</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R158">158</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R159">159</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R164">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R165">165</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R166">166</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R167">167</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R168">168</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R169">169</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R170">170</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R171">171</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R172">172</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R173">173</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R174">174</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R175">175</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R176">176</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R177">177</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R178">178</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R180">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R181">181</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R182">182</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R183">183</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R184">184</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R185">185</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R186">186</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R187">187</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R188">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R189">189</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R190">190</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R191">191</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R192">192</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R193">193</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R194">194</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R195">195</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R196">196</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/3afb045c649fecd9146255a1f8513b1bcc05ee9d#L0R197">197</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -151,6 +151,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> serf = Serf.new(@name)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> old_timestamp = serf.last_message_timestamp</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> old_timestamp = Time.parse(old_timestamp) if old_timestamp</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ logger.trace("export_last_message_timestamp_to_cluster: check",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ :old => old_timestamp,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ :current => @last_message_timestamp)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if old_timestamp.nil? or timestamp > old_timestamp</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> timestamp = timestamp.utc.iso8601(MICRO_SECONDS_DECIMAL_PLACE)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> serf.last_message_timestamp = timestamp</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -162,9 +165,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def export_last_message_timestamp_to_file</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ logger.trace("export_last_message_timestamp_to_file: start")</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> old_timestamp = read_last_message_timestamp</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ logger.trace("export_last_message_timestamp_to_file: check",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ :loaded => old_timestamp,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ :current => @last_message_timestamp)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if old_timestamp and</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> old_timestamp > @last_message_timestamp</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ logger.trace("export_last_message_timestamp_to_file: skipped")</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> path = Path.last_message_timestamp</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -173,6 +181,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> timestamp = timestamp.utc.iso8601(MICRO_SECONDS_DECIMAL_PLACE)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> output.puts(timestamp)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ logger.trace("export_last_message_timestamp_to_file: done")</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def run_last_message_timestamp_observer</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -180,6 +189,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> observer = FileObserver.new(@loop, path)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> observer.on_change = lambda do</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> timestamp = read_last_message_timestamp</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ logger.trace("last message stamp file is modified",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ :loaded => timestamp,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ :current => @last_message_timestamp)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if timestamp</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if @last_message_timestamp.nil? or</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> timestamp > @last_message_timestamp</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>