<!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 &lt;shimo****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2014-04-24 19:03:59 +0900 (Thu, 24 Apr 2014)</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196">2394b2defeb84d8d6bf770a7377eb408c1c0e196</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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Generate catalog.json for multiple hosts</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#diff-0">bin/droonga-catalog-generate</a></li>
          <li><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#diff-1">lib/droonga/catalog_generator.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, &quot;Liberation Mono&quot;, 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: bin/droonga-catalog-generate (+3 -7)</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, &quot;Liberation Mono&quot;, 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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L44">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L45">45</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L46">46</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L47">47</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L48">48</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L49">49</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L50">50</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L52">52</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L53">53</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L56">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L58">58</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L59">59</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L60">60</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L61">61</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L62">62</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L63">63</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L64">64</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L65">65</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0L66">66</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R44">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R45">45</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R46">46</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R47">47</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R48">48</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R49">49</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R52">52</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R53">53</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R56">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R58">58</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R59">59</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R60">60</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R61">61</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L0R62">62</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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">@@ -45,9 +45,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">parser.on(&quot;--n-workers=N&quot;, Integer,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">           &quot;Use N workers for the current dataset.&quot;) do |n|</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   current_dataset[:n_workers] = n</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-parser.on(&quot;--host=NAME&quot;,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          &quot;Use the NAME as the host for the current dataset.&quot;) do |host|</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  current_dataset[:host] = host</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+parser.on(&quot;--hosts=NAME1,NAME2,...&quot;, Array,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          &quot;Use given hosts for replicas of the current dataset.&quot;) do |hosts|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  current_dataset[:hosts] = hosts</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"> parser.on(&quot;--port=PORT&quot;, Integer,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           &quot;Use the PORT as the port for the current dataset.&quot;) do |port|</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -57,10 +57,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">parser.on(&quot;--tag=TAG&quot;,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">           &quot;Use the TAG as the tag for the current dataset.&quot;) do |tag|</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   current_dataset[:tag] = tag</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-parser.on(&quot;--n-replicas=N&quot;, Integer,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          &quot;Use N replicas for the current dataset.&quot;) do |n|</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  current_dataset[:n_replicas] = n</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> parser.on(&quot;--n-slices=N&quot;, Integer,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           &quot;Use N slices for each replica.&quot;) do |n|</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   current_dataset[:n_slices] = n</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <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, &quot;Liberation Mono&quot;, 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/catalog_generator.rb (+7 -8)</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, &quot;Liberation Mono&quot;, 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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L86">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L87">87</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L89">89</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L90">90</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L92">92</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L95">95</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L96">96</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L102">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L103">103</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L104">104</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L105">105</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L106">106</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L107">107</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L108">108</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L109">109</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L110">110</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L111">111</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L112">112</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L113">113</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L114">114</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L115">115</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L116">116</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L117">117</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L118">118</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L120">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L121">121</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L122">122</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L123">123</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L124">124</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L126">126</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L127">127</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L128">128</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L129">129</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L130">130</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L131">131</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L132">132</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1L133">133</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R86">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R87">87</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R89">89</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R90">90</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R92">92</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R95">95</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R101">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R102">102</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R103">103</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R104">104</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R105">105</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R106">106</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R107">107</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R108">108</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R109">109</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R110">110</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R111">111</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R112">112</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R113">113</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R114">114</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R115">115</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R116">116</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R117">117</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R119">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R120">120</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R121">121</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R122">122</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R123">123</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R124">124</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R126">126</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R127">127</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R128">128</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R129">129</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R130">130</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R131">131</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-engine/commit/2394b2defeb84d8d6bf770a7377eb408c1c0e196#L1R132">132</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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">@@ -87,10 +87,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"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">     class Replicas</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       def initialize(parameters={})</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        @host       = parameters[:host]       || &quot;127.0.0.1&quot;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        @hosts      = parameters[:hosts]      || [&quot;127.0.0.1&quot;]</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         @port       = parameters[:port]       || 10031</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         @tag        = parameters[:tag]        || &quot;droonga&quot;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        @n_replicas = parameters[:n_replicas] || 2</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         @n_slices   = parameters[:n_slices]   || 1</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">         @n_volumes = 0</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -103,16 +102,16 @@ <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">       private</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       def generate_json</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         replicas = []</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        @n_replicas.times do |index|</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          replicas &lt;&lt; generate_replica</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        @hosts.each do |host|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          replicas &lt;&lt; generate_replica(host)</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">         replicas</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-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      def generate_replica</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      def generate_replica(host)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         slices = []</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         @n_slices.times do |index|</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          slices &lt;&lt; generate_slice</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          slices &lt;&lt; generate_slice(host)</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">           &quot;dimension&quot; =&gt; &quot;_key&quot;,</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -121,13 +120,13 @@ <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">         }</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-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      def generate_slice</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      def generate_slice(host)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         name = sprintf('%03d', @n_volumes)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         @n_volumes += 1</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           &quot;weight&quot; =&gt; weight,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           &quot;volume&quot; =&gt; {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            &quot;address&quot; =&gt; &quot;#{@host}:#{@port}/#{@tag}.#{name}&quot;,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            &quot;address&quot; =&gt; &quot;#{host}:#{@port}/#{@tag}.#{name}&quot;,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           },</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       end</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>