hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [08/11] hbase-site git commit: Published site at 405bf5e6383a09f435baadbac6c389e9f6c43ac6.
Date Tue, 20 Nov 2018 14:53:00 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/c8b83ace/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.Loader.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.Loader.html b/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.Loader.html
index 257263c..7a81ab8 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.Loader.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.Loader.html
@@ -96,183 +96,180 @@
 <span class="sourceLineNo">088</span>      Loader loader) throws IOException {<a name="line.88"></a>
 <span class="sourceLineNo">089</span>    ProcedureWALFormatReader reader = new ProcedureWALFormatReader(tracker, loader);<a name="line.89"></a>
 <span class="sourceLineNo">090</span>    tracker.setKeepDeletes(true);<a name="line.90"></a>
-<span class="sourceLineNo">091</span>    try {<a name="line.91"></a>
-<span class="sourceLineNo">092</span>      // Ignore the last log which is current active log.<a name="line.92"></a>
-<span class="sourceLineNo">093</span>      while (logs.hasNext()) {<a name="line.93"></a>
-<span class="sourceLineNo">094</span>        ProcedureWALFile log = logs.next();<a name="line.94"></a>
-<span class="sourceLineNo">095</span>        log.open();<a name="line.95"></a>
-<span class="sourceLineNo">096</span>        try {<a name="line.96"></a>
-<span class="sourceLineNo">097</span>          reader.read(log);<a name="line.97"></a>
-<span class="sourceLineNo">098</span>        } finally {<a name="line.98"></a>
-<span class="sourceLineNo">099</span>          log.close();<a name="line.99"></a>
-<span class="sourceLineNo">100</span>        }<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      }<a name="line.101"></a>
-<span class="sourceLineNo">102</span>      reader.finish();<a name="line.102"></a>
-<span class="sourceLineNo">103</span><a name="line.103"></a>
-<span class="sourceLineNo">104</span>      // The tracker is now updated with all the procedures read from the logs<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      if (tracker.isPartial()) {<a name="line.105"></a>
-<span class="sourceLineNo">106</span>        tracker.setPartialFlag(false);<a name="line.106"></a>
-<span class="sourceLineNo">107</span>      }<a name="line.107"></a>
-<span class="sourceLineNo">108</span>      tracker.resetModified();<a name="line.108"></a>
-<span class="sourceLineNo">109</span>    } finally {<a name="line.109"></a>
-<span class="sourceLineNo">110</span>      tracker.setKeepDeletes(false);<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    }<a name="line.111"></a>
-<span class="sourceLineNo">112</span>  }<a name="line.112"></a>
-<span class="sourceLineNo">113</span><a name="line.113"></a>
-<span class="sourceLineNo">114</span>  public static void writeHeader(OutputStream stream, ProcedureWALHeader header)<a name="line.114"></a>
-<span class="sourceLineNo">115</span>      throws IOException {<a name="line.115"></a>
-<span class="sourceLineNo">116</span>    header.writeDelimitedTo(stream);<a name="line.116"></a>
-<span class="sourceLineNo">117</span>  }<a name="line.117"></a>
-<span class="sourceLineNo">118</span><a name="line.118"></a>
-<span class="sourceLineNo">119</span>  /*<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   * +-----------------+<a name="line.120"></a>
-<span class="sourceLineNo">121</span>   * | END OF WAL DATA | &lt;---+<a name="line.121"></a>
-<span class="sourceLineNo">122</span>   * +-----------------+     |<a name="line.122"></a>
-<span class="sourceLineNo">123</span>   * |                 |     |<a name="line.123"></a>
-<span class="sourceLineNo">124</span>   * |     Tracker     |     |<a name="line.124"></a>
-<span class="sourceLineNo">125</span>   * |                 |     |<a name="line.125"></a>
-<span class="sourceLineNo">126</span>   * +-----------------+     |<a name="line.126"></a>
-<span class="sourceLineNo">127</span>   * |     version     |     |<a name="line.127"></a>
-<span class="sourceLineNo">128</span>   * +-----------------+     |<a name="line.128"></a>
-<span class="sourceLineNo">129</span>   * |  TRAILER_MAGIC  |     |<a name="line.129"></a>
-<span class="sourceLineNo">130</span>   * +-----------------+     |<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * |      offset     |-----+<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   * +-----------------+<a name="line.132"></a>
-<span class="sourceLineNo">133</span>   */<a name="line.133"></a>
-<span class="sourceLineNo">134</span>  public static long writeTrailer(FSDataOutputStream stream, ProcedureStoreTracker tracker)<a name="line.134"></a>
-<span class="sourceLineNo">135</span>      throws IOException {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    long offset = stream.getPos();<a name="line.136"></a>
-<span class="sourceLineNo">137</span><a name="line.137"></a>
-<span class="sourceLineNo">138</span>    // Write EOF Entry<a name="line.138"></a>
-<span class="sourceLineNo">139</span>    ProcedureWALEntry.newBuilder()<a name="line.139"></a>
-<span class="sourceLineNo">140</span>      .setType(ProcedureWALEntry.Type.PROCEDURE_WAL_EOF)<a name="line.140"></a>
-<span class="sourceLineNo">141</span>      .build().writeDelimitedTo(stream);<a name="line.141"></a>
+<span class="sourceLineNo">091</span>    // Ignore the last log which is current active log.<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    while (logs.hasNext()) {<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      ProcedureWALFile log = logs.next();<a name="line.93"></a>
+<span class="sourceLineNo">094</span>      log.open();<a name="line.94"></a>
+<span class="sourceLineNo">095</span>      try {<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        reader.read(log);<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      } finally {<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        log.close();<a name="line.98"></a>
+<span class="sourceLineNo">099</span>      }<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    }<a name="line.100"></a>
+<span class="sourceLineNo">101</span>    reader.finish();<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span>    // The tracker is now updated with all the procedures read from the logs<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    if (tracker.isPartial()) {<a name="line.104"></a>
+<span class="sourceLineNo">105</span>      tracker.setPartialFlag(false);<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    }<a name="line.106"></a>
+<span class="sourceLineNo">107</span>    tracker.resetModified();<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    tracker.setKeepDeletes(false);<a name="line.108"></a>
+<span class="sourceLineNo">109</span>  }<a name="line.109"></a>
+<span class="sourceLineNo">110</span><a name="line.110"></a>
+<span class="sourceLineNo">111</span>  public static void writeHeader(OutputStream stream, ProcedureWALHeader header)<a name="line.111"></a>
+<span class="sourceLineNo">112</span>      throws IOException {<a name="line.112"></a>
+<span class="sourceLineNo">113</span>    header.writeDelimitedTo(stream);<a name="line.113"></a>
+<span class="sourceLineNo">114</span>  }<a name="line.114"></a>
+<span class="sourceLineNo">115</span><a name="line.115"></a>
+<span class="sourceLineNo">116</span>  /*<a name="line.116"></a>
+<span class="sourceLineNo">117</span>   * +-----------------+<a name="line.117"></a>
+<span class="sourceLineNo">118</span>   * | END OF WAL DATA | &lt;---+<a name="line.118"></a>
+<span class="sourceLineNo">119</span>   * +-----------------+     |<a name="line.119"></a>
+<span class="sourceLineNo">120</span>   * |                 |     |<a name="line.120"></a>
+<span class="sourceLineNo">121</span>   * |     Tracker     |     |<a name="line.121"></a>
+<span class="sourceLineNo">122</span>   * |                 |     |<a name="line.122"></a>
+<span class="sourceLineNo">123</span>   * +-----------------+     |<a name="line.123"></a>
+<span class="sourceLineNo">124</span>   * |     version     |     |<a name="line.124"></a>
+<span class="sourceLineNo">125</span>   * +-----------------+     |<a name="line.125"></a>
+<span class="sourceLineNo">126</span>   * |  TRAILER_MAGIC  |     |<a name="line.126"></a>
+<span class="sourceLineNo">127</span>   * +-----------------+     |<a name="line.127"></a>
+<span class="sourceLineNo">128</span>   * |      offset     |-----+<a name="line.128"></a>
+<span class="sourceLineNo">129</span>   * +-----------------+<a name="line.129"></a>
+<span class="sourceLineNo">130</span>   */<a name="line.130"></a>
+<span class="sourceLineNo">131</span>  public static long writeTrailer(FSDataOutputStream stream, ProcedureStoreTracker tracker)<a name="line.131"></a>
+<span class="sourceLineNo">132</span>      throws IOException {<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    long offset = stream.getPos();<a name="line.133"></a>
+<span class="sourceLineNo">134</span><a name="line.134"></a>
+<span class="sourceLineNo">135</span>    // Write EOF Entry<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    ProcedureWALEntry.newBuilder()<a name="line.136"></a>
+<span class="sourceLineNo">137</span>      .setType(ProcedureWALEntry.Type.PROCEDURE_WAL_EOF)<a name="line.137"></a>
+<span class="sourceLineNo">138</span>      .build().writeDelimitedTo(stream);<a name="line.138"></a>
+<span class="sourceLineNo">139</span><a name="line.139"></a>
+<span class="sourceLineNo">140</span>    // Write Tracker<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    tracker.toProto().writeDelimitedTo(stream);<a name="line.141"></a>
 <span class="sourceLineNo">142</span><a name="line.142"></a>
-<span class="sourceLineNo">143</span>    // Write Tracker<a name="line.143"></a>
-<span class="sourceLineNo">144</span>    tracker.toProto().writeDelimitedTo(stream);<a name="line.144"></a>
-<span class="sourceLineNo">145</span><a name="line.145"></a>
-<span class="sourceLineNo">146</span>    stream.write(TRAILER_VERSION);<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    StreamUtils.writeLong(stream, TRAILER_MAGIC);<a name="line.147"></a>
-<span class="sourceLineNo">148</span>    StreamUtils.writeLong(stream, offset);<a name="line.148"></a>
-<span class="sourceLineNo">149</span>    return stream.getPos() - offset;<a name="line.149"></a>
-<span class="sourceLineNo">150</span>  }<a name="line.150"></a>
-<span class="sourceLineNo">151</span><a name="line.151"></a>
-<span class="sourceLineNo">152</span>  public static ProcedureWALHeader readHeader(InputStream stream)<a name="line.152"></a>
-<span class="sourceLineNo">153</span>      throws IOException {<a name="line.153"></a>
-<span class="sourceLineNo">154</span>    ProcedureWALHeader header;<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    try {<a name="line.155"></a>
-<span class="sourceLineNo">156</span>      header = ProcedureWALHeader.parseDelimitedFrom(stream);<a name="line.156"></a>
-<span class="sourceLineNo">157</span>    } catch (InvalidProtocolBufferException e) {<a name="line.157"></a>
-<span class="sourceLineNo">158</span>      throw new InvalidWALDataException(e);<a name="line.158"></a>
-<span class="sourceLineNo">159</span>    }<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span>    if (header == null) {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>      throw new InvalidWALDataException("No data available to read the Header");<a name="line.162"></a>
-<span class="sourceLineNo">163</span>    }<a name="line.163"></a>
-<span class="sourceLineNo">164</span><a name="line.164"></a>
-<span class="sourceLineNo">165</span>    if (header.getVersion() &lt; 0 || header.getVersion() != HEADER_VERSION) {<a name="line.165"></a>
-<span class="sourceLineNo">166</span>      throw new InvalidWALDataException("Invalid Header version. got " + header.getVersion() +<a name="line.166"></a>
-<span class="sourceLineNo">167</span>          " expected " + HEADER_VERSION);<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    }<a name="line.168"></a>
-<span class="sourceLineNo">169</span><a name="line.169"></a>
-<span class="sourceLineNo">170</span>    if (header.getType() &lt; 0 || header.getType() &gt; LOG_TYPE_MAX_VALID) {<a name="line.170"></a>
-<span class="sourceLineNo">171</span>      throw new InvalidWALDataException("Invalid header type. got " + header.getType());<a name="line.171"></a>
-<span class="sourceLineNo">172</span>    }<a name="line.172"></a>
+<span class="sourceLineNo">143</span>    stream.write(TRAILER_VERSION);<a name="line.143"></a>
+<span class="sourceLineNo">144</span>    StreamUtils.writeLong(stream, TRAILER_MAGIC);<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    StreamUtils.writeLong(stream, offset);<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    return stream.getPos() - offset;<a name="line.146"></a>
+<span class="sourceLineNo">147</span>  }<a name="line.147"></a>
+<span class="sourceLineNo">148</span><a name="line.148"></a>
+<span class="sourceLineNo">149</span>  public static ProcedureWALHeader readHeader(InputStream stream)<a name="line.149"></a>
+<span class="sourceLineNo">150</span>      throws IOException {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    ProcedureWALHeader header;<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    try {<a name="line.152"></a>
+<span class="sourceLineNo">153</span>      header = ProcedureWALHeader.parseDelimitedFrom(stream);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>    } catch (InvalidProtocolBufferException e) {<a name="line.154"></a>
+<span class="sourceLineNo">155</span>      throw new InvalidWALDataException(e);<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    }<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span>    if (header == null) {<a name="line.158"></a>
+<span class="sourceLineNo">159</span>      throw new InvalidWALDataException("No data available to read the Header");<a name="line.159"></a>
+<span class="sourceLineNo">160</span>    }<a name="line.160"></a>
+<span class="sourceLineNo">161</span><a name="line.161"></a>
+<span class="sourceLineNo">162</span>    if (header.getVersion() &lt; 0 || header.getVersion() != HEADER_VERSION) {<a name="line.162"></a>
+<span class="sourceLineNo">163</span>      throw new InvalidWALDataException("Invalid Header version. got " + header.getVersion() +<a name="line.163"></a>
+<span class="sourceLineNo">164</span>          " expected " + HEADER_VERSION);<a name="line.164"></a>
+<span class="sourceLineNo">165</span>    }<a name="line.165"></a>
+<span class="sourceLineNo">166</span><a name="line.166"></a>
+<span class="sourceLineNo">167</span>    if (header.getType() &lt; 0 || header.getType() &gt; LOG_TYPE_MAX_VALID) {<a name="line.167"></a>
+<span class="sourceLineNo">168</span>      throw new InvalidWALDataException("Invalid header type. got " + header.getType());<a name="line.168"></a>
+<span class="sourceLineNo">169</span>    }<a name="line.169"></a>
+<span class="sourceLineNo">170</span><a name="line.170"></a>
+<span class="sourceLineNo">171</span>    return header;<a name="line.171"></a>
+<span class="sourceLineNo">172</span>  }<a name="line.172"></a>
 <span class="sourceLineNo">173</span><a name="line.173"></a>
-<span class="sourceLineNo">174</span>    return header;<a name="line.174"></a>
-<span class="sourceLineNo">175</span>  }<a name="line.175"></a>
-<span class="sourceLineNo">176</span><a name="line.176"></a>
-<span class="sourceLineNo">177</span>  public static ProcedureWALTrailer readTrailer(FSDataInputStream stream, long startPos, long size)<a name="line.177"></a>
-<span class="sourceLineNo">178</span>      throws IOException {<a name="line.178"></a>
-<span class="sourceLineNo">179</span>    // Beginning of the Trailer Jump. 17 = 1 byte version + 8 byte magic + 8 byte offset<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    long trailerPos = size - 17;<a name="line.180"></a>
-<span class="sourceLineNo">181</span><a name="line.181"></a>
-<span class="sourceLineNo">182</span>    if (trailerPos &lt; startPos) {<a name="line.182"></a>
-<span class="sourceLineNo">183</span>      throw new InvalidWALDataException("Missing trailer: size=" + size + " startPos=" + startPos);<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    }<a name="line.184"></a>
-<span class="sourceLineNo">185</span><a name="line.185"></a>
-<span class="sourceLineNo">186</span>    stream.seek(trailerPos);<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    int version = stream.read();<a name="line.187"></a>
-<span class="sourceLineNo">188</span>    if (version != TRAILER_VERSION) {<a name="line.188"></a>
-<span class="sourceLineNo">189</span>      throw new InvalidWALDataException("Invalid Trailer version. got " + version +<a name="line.189"></a>
-<span class="sourceLineNo">190</span>          " expected " + TRAILER_VERSION);<a name="line.190"></a>
-<span class="sourceLineNo">191</span>    }<a name="line.191"></a>
-<span class="sourceLineNo">192</span><a name="line.192"></a>
-<span class="sourceLineNo">193</span>    long magic = StreamUtils.readLong(stream);<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    if (magic != TRAILER_MAGIC) {<a name="line.194"></a>
-<span class="sourceLineNo">195</span>      throw new InvalidWALDataException("Invalid Trailer magic. got " + magic +<a name="line.195"></a>
-<span class="sourceLineNo">196</span>          " expected " + TRAILER_MAGIC);<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    }<a name="line.197"></a>
+<span class="sourceLineNo">174</span>  public static ProcedureWALTrailer readTrailer(FSDataInputStream stream, long startPos, long size)<a name="line.174"></a>
+<span class="sourceLineNo">175</span>      throws IOException {<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    // Beginning of the Trailer Jump. 17 = 1 byte version + 8 byte magic + 8 byte offset<a name="line.176"></a>
+<span class="sourceLineNo">177</span>    long trailerPos = size - 17;<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span>    if (trailerPos &lt; startPos) {<a name="line.179"></a>
+<span class="sourceLineNo">180</span>      throw new InvalidWALDataException("Missing trailer: size=" + size + " startPos=" + startPos);<a name="line.180"></a>
+<span class="sourceLineNo">181</span>    }<a name="line.181"></a>
+<span class="sourceLineNo">182</span><a name="line.182"></a>
+<span class="sourceLineNo">183</span>    stream.seek(trailerPos);<a name="line.183"></a>
+<span class="sourceLineNo">184</span>    int version = stream.read();<a name="line.184"></a>
+<span class="sourceLineNo">185</span>    if (version != TRAILER_VERSION) {<a name="line.185"></a>
+<span class="sourceLineNo">186</span>      throw new InvalidWALDataException("Invalid Trailer version. got " + version +<a name="line.186"></a>
+<span class="sourceLineNo">187</span>          " expected " + TRAILER_VERSION);<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    }<a name="line.188"></a>
+<span class="sourceLineNo">189</span><a name="line.189"></a>
+<span class="sourceLineNo">190</span>    long magic = StreamUtils.readLong(stream);<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    if (magic != TRAILER_MAGIC) {<a name="line.191"></a>
+<span class="sourceLineNo">192</span>      throw new InvalidWALDataException("Invalid Trailer magic. got " + magic +<a name="line.192"></a>
+<span class="sourceLineNo">193</span>          " expected " + TRAILER_MAGIC);<a name="line.193"></a>
+<span class="sourceLineNo">194</span>    }<a name="line.194"></a>
+<span class="sourceLineNo">195</span><a name="line.195"></a>
+<span class="sourceLineNo">196</span>    long trailerOffset = StreamUtils.readLong(stream);<a name="line.196"></a>
+<span class="sourceLineNo">197</span>    stream.seek(trailerOffset);<a name="line.197"></a>
 <span class="sourceLineNo">198</span><a name="line.198"></a>
-<span class="sourceLineNo">199</span>    long trailerOffset = StreamUtils.readLong(stream);<a name="line.199"></a>
-<span class="sourceLineNo">200</span>    stream.seek(trailerOffset);<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span>    ProcedureWALEntry entry = readEntry(stream);<a name="line.202"></a>
-<span class="sourceLineNo">203</span>    if (entry.getType() != ProcedureWALEntry.Type.PROCEDURE_WAL_EOF) {<a name="line.203"></a>
-<span class="sourceLineNo">204</span>      throw new InvalidWALDataException("Invalid Trailer begin");<a name="line.204"></a>
-<span class="sourceLineNo">205</span>    }<a name="line.205"></a>
-<span class="sourceLineNo">206</span><a name="line.206"></a>
-<span class="sourceLineNo">207</span>    ProcedureWALTrailer trailer = ProcedureWALTrailer.newBuilder()<a name="line.207"></a>
-<span class="sourceLineNo">208</span>      .setVersion(version)<a name="line.208"></a>
-<span class="sourceLineNo">209</span>      .setTrackerPos(stream.getPos())<a name="line.209"></a>
-<span class="sourceLineNo">210</span>      .build();<a name="line.210"></a>
-<span class="sourceLineNo">211</span>    return trailer;<a name="line.211"></a>
-<span class="sourceLineNo">212</span>  }<a name="line.212"></a>
-<span class="sourceLineNo">213</span><a name="line.213"></a>
-<span class="sourceLineNo">214</span>  public static ProcedureWALEntry readEntry(InputStream stream) throws IOException {<a name="line.214"></a>
-<span class="sourceLineNo">215</span>    return ProcedureWALEntry.parseDelimitedFrom(stream);<a name="line.215"></a>
-<span class="sourceLineNo">216</span>  }<a name="line.216"></a>
-<span class="sourceLineNo">217</span><a name="line.217"></a>
-<span class="sourceLineNo">218</span>  public static void writeEntry(ByteSlot slot, ProcedureWALEntry.Type type,<a name="line.218"></a>
-<span class="sourceLineNo">219</span>      Procedure&lt;?&gt; proc, Procedure&lt;?&gt;[] subprocs) throws IOException {<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.220"></a>
-<span class="sourceLineNo">221</span>    builder.setType(type);<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));<a name="line.222"></a>
-<span class="sourceLineNo">223</span>    if (subprocs != null) {<a name="line.223"></a>
-<span class="sourceLineNo">224</span>      for (int i = 0; i &lt; subprocs.length; ++i) {<a name="line.224"></a>
-<span class="sourceLineNo">225</span>        builder.addProcedure(ProcedureUtil.convertToProtoProcedure(subprocs[i]));<a name="line.225"></a>
-<span class="sourceLineNo">226</span>      }<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    }<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    builder.build().writeDelimitedTo(slot);<a name="line.228"></a>
-<span class="sourceLineNo">229</span>  }<a name="line.229"></a>
-<span class="sourceLineNo">230</span><a name="line.230"></a>
-<span class="sourceLineNo">231</span>  public static void writeInsert(ByteSlot slot, Procedure&lt;?&gt; proc)<a name="line.231"></a>
-<span class="sourceLineNo">232</span>      throws IOException {<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INIT, proc, null);<a name="line.233"></a>
-<span class="sourceLineNo">234</span>  }<a name="line.234"></a>
-<span class="sourceLineNo">235</span><a name="line.235"></a>
-<span class="sourceLineNo">236</span>  public static void writeInsert(ByteSlot slot, Procedure&lt;?&gt; proc, Procedure&lt;?&gt;[] subprocs)<a name="line.236"></a>
-<span class="sourceLineNo">237</span>      throws IOException {<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INSERT, proc, subprocs);<a name="line.238"></a>
-<span class="sourceLineNo">239</span>  }<a name="line.239"></a>
-<span class="sourceLineNo">240</span><a name="line.240"></a>
-<span class="sourceLineNo">241</span>  public static void writeUpdate(ByteSlot slot, Procedure&lt;?&gt; proc)<a name="line.241"></a>
-<span class="sourceLineNo">242</span>      throws IOException {<a name="line.242"></a>
-<span class="sourceLineNo">243</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_UPDATE, proc, null);<a name="line.243"></a>
-<span class="sourceLineNo">244</span>  }<a name="line.244"></a>
-<span class="sourceLineNo">245</span><a name="line.245"></a>
-<span class="sourceLineNo">246</span>  public static void writeDelete(ByteSlot slot, long procId)<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      throws IOException {<a name="line.247"></a>
-<span class="sourceLineNo">248</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.248"></a>
-<span class="sourceLineNo">249</span>    builder.setType(ProcedureWALEntry.Type.PROCEDURE_WAL_DELETE);<a name="line.249"></a>
-<span class="sourceLineNo">250</span>    builder.setProcId(procId);<a name="line.250"></a>
-<span class="sourceLineNo">251</span>    builder.build().writeDelimitedTo(slot);<a name="line.251"></a>
-<span class="sourceLineNo">252</span>  }<a name="line.252"></a>
-<span class="sourceLineNo">253</span><a name="line.253"></a>
-<span class="sourceLineNo">254</span>  public static void writeDelete(ByteSlot slot, Procedure&lt;?&gt; proc, long[] subprocs)<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      throws IOException {<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.256"></a>
-<span class="sourceLineNo">257</span>    builder.setType(ProcedureWALEntry.Type.PROCEDURE_WAL_DELETE);<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    builder.setProcId(proc.getProcId());<a name="line.258"></a>
-<span class="sourceLineNo">259</span>    if (subprocs != null) {<a name="line.259"></a>
-<span class="sourceLineNo">260</span>      builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));<a name="line.260"></a>
-<span class="sourceLineNo">261</span>      for (int i = 0; i &lt; subprocs.length; ++i) {<a name="line.261"></a>
-<span class="sourceLineNo">262</span>        builder.addChildId(subprocs[i]);<a name="line.262"></a>
-<span class="sourceLineNo">263</span>      }<a name="line.263"></a>
-<span class="sourceLineNo">264</span>    }<a name="line.264"></a>
-<span class="sourceLineNo">265</span>    builder.build().writeDelimitedTo(slot);<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  }<a name="line.266"></a>
-<span class="sourceLineNo">267</span>}<a name="line.267"></a>
+<span class="sourceLineNo">199</span>    ProcedureWALEntry entry = readEntry(stream);<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    if (entry.getType() != ProcedureWALEntry.Type.PROCEDURE_WAL_EOF) {<a name="line.200"></a>
+<span class="sourceLineNo">201</span>      throw new InvalidWALDataException("Invalid Trailer begin");<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    }<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>    ProcedureWALTrailer trailer = ProcedureWALTrailer.newBuilder()<a name="line.204"></a>
+<span class="sourceLineNo">205</span>      .setVersion(version)<a name="line.205"></a>
+<span class="sourceLineNo">206</span>      .setTrackerPos(stream.getPos())<a name="line.206"></a>
+<span class="sourceLineNo">207</span>      .build();<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    return trailer;<a name="line.208"></a>
+<span class="sourceLineNo">209</span>  }<a name="line.209"></a>
+<span class="sourceLineNo">210</span><a name="line.210"></a>
+<span class="sourceLineNo">211</span>  public static ProcedureWALEntry readEntry(InputStream stream) throws IOException {<a name="line.211"></a>
+<span class="sourceLineNo">212</span>    return ProcedureWALEntry.parseDelimitedFrom(stream);<a name="line.212"></a>
+<span class="sourceLineNo">213</span>  }<a name="line.213"></a>
+<span class="sourceLineNo">214</span><a name="line.214"></a>
+<span class="sourceLineNo">215</span>  public static void writeEntry(ByteSlot slot, ProcedureWALEntry.Type type,<a name="line.215"></a>
+<span class="sourceLineNo">216</span>      Procedure&lt;?&gt; proc, Procedure&lt;?&gt;[] subprocs) throws IOException {<a name="line.216"></a>
+<span class="sourceLineNo">217</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.217"></a>
+<span class="sourceLineNo">218</span>    builder.setType(type);<a name="line.218"></a>
+<span class="sourceLineNo">219</span>    builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    if (subprocs != null) {<a name="line.220"></a>
+<span class="sourceLineNo">221</span>      for (int i = 0; i &lt; subprocs.length; ++i) {<a name="line.221"></a>
+<span class="sourceLineNo">222</span>        builder.addProcedure(ProcedureUtil.convertToProtoProcedure(subprocs[i]));<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      }<a name="line.223"></a>
+<span class="sourceLineNo">224</span>    }<a name="line.224"></a>
+<span class="sourceLineNo">225</span>    builder.build().writeDelimitedTo(slot);<a name="line.225"></a>
+<span class="sourceLineNo">226</span>  }<a name="line.226"></a>
+<span class="sourceLineNo">227</span><a name="line.227"></a>
+<span class="sourceLineNo">228</span>  public static void writeInsert(ByteSlot slot, Procedure&lt;?&gt; proc)<a name="line.228"></a>
+<span class="sourceLineNo">229</span>      throws IOException {<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INIT, proc, null);<a name="line.230"></a>
+<span class="sourceLineNo">231</span>  }<a name="line.231"></a>
+<span class="sourceLineNo">232</span><a name="line.232"></a>
+<span class="sourceLineNo">233</span>  public static void writeInsert(ByteSlot slot, Procedure&lt;?&gt; proc, Procedure&lt;?&gt;[] subprocs)<a name="line.233"></a>
+<span class="sourceLineNo">234</span>      throws IOException {<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INSERT, proc, subprocs);<a name="line.235"></a>
+<span class="sourceLineNo">236</span>  }<a name="line.236"></a>
+<span class="sourceLineNo">237</span><a name="line.237"></a>
+<span class="sourceLineNo">238</span>  public static void writeUpdate(ByteSlot slot, Procedure&lt;?&gt; proc)<a name="line.238"></a>
+<span class="sourceLineNo">239</span>      throws IOException {<a name="line.239"></a>
+<span class="sourceLineNo">240</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_UPDATE, proc, null);<a name="line.240"></a>
+<span class="sourceLineNo">241</span>  }<a name="line.241"></a>
+<span class="sourceLineNo">242</span><a name="line.242"></a>
+<span class="sourceLineNo">243</span>  public static void writeDelete(ByteSlot slot, long procId)<a name="line.243"></a>
+<span class="sourceLineNo">244</span>      throws IOException {<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.245"></a>
+<span class="sourceLineNo">246</span>    builder.setType(ProcedureWALEntry.Type.PROCEDURE_WAL_DELETE);<a name="line.246"></a>
+<span class="sourceLineNo">247</span>    builder.setProcId(procId);<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    builder.build().writeDelimitedTo(slot);<a name="line.248"></a>
+<span class="sourceLineNo">249</span>  }<a name="line.249"></a>
+<span class="sourceLineNo">250</span><a name="line.250"></a>
+<span class="sourceLineNo">251</span>  public static void writeDelete(ByteSlot slot, Procedure&lt;?&gt; proc, long[] subprocs)<a name="line.251"></a>
+<span class="sourceLineNo">252</span>      throws IOException {<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.253"></a>
+<span class="sourceLineNo">254</span>    builder.setType(ProcedureWALEntry.Type.PROCEDURE_WAL_DELETE);<a name="line.254"></a>
+<span class="sourceLineNo">255</span>    builder.setProcId(proc.getProcId());<a name="line.255"></a>
+<span class="sourceLineNo">256</span>    if (subprocs != null) {<a name="line.256"></a>
+<span class="sourceLineNo">257</span>      builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));<a name="line.257"></a>
+<span class="sourceLineNo">258</span>      for (int i = 0; i &lt; subprocs.length; ++i) {<a name="line.258"></a>
+<span class="sourceLineNo">259</span>        builder.addChildId(subprocs[i]);<a name="line.259"></a>
+<span class="sourceLineNo">260</span>      }<a name="line.260"></a>
+<span class="sourceLineNo">261</span>    }<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    builder.build().writeDelimitedTo(slot);<a name="line.262"></a>
+<span class="sourceLineNo">263</span>  }<a name="line.263"></a>
+<span class="sourceLineNo">264</span>}<a name="line.264"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/c8b83ace/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.html b/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.html
index 257263c..7a81ab8 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFormat.html
@@ -96,183 +96,180 @@
 <span class="sourceLineNo">088</span>      Loader loader) throws IOException {<a name="line.88"></a>
 <span class="sourceLineNo">089</span>    ProcedureWALFormatReader reader = new ProcedureWALFormatReader(tracker, loader);<a name="line.89"></a>
 <span class="sourceLineNo">090</span>    tracker.setKeepDeletes(true);<a name="line.90"></a>
-<span class="sourceLineNo">091</span>    try {<a name="line.91"></a>
-<span class="sourceLineNo">092</span>      // Ignore the last log which is current active log.<a name="line.92"></a>
-<span class="sourceLineNo">093</span>      while (logs.hasNext()) {<a name="line.93"></a>
-<span class="sourceLineNo">094</span>        ProcedureWALFile log = logs.next();<a name="line.94"></a>
-<span class="sourceLineNo">095</span>        log.open();<a name="line.95"></a>
-<span class="sourceLineNo">096</span>        try {<a name="line.96"></a>
-<span class="sourceLineNo">097</span>          reader.read(log);<a name="line.97"></a>
-<span class="sourceLineNo">098</span>        } finally {<a name="line.98"></a>
-<span class="sourceLineNo">099</span>          log.close();<a name="line.99"></a>
-<span class="sourceLineNo">100</span>        }<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      }<a name="line.101"></a>
-<span class="sourceLineNo">102</span>      reader.finish();<a name="line.102"></a>
-<span class="sourceLineNo">103</span><a name="line.103"></a>
-<span class="sourceLineNo">104</span>      // The tracker is now updated with all the procedures read from the logs<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      if (tracker.isPartial()) {<a name="line.105"></a>
-<span class="sourceLineNo">106</span>        tracker.setPartialFlag(false);<a name="line.106"></a>
-<span class="sourceLineNo">107</span>      }<a name="line.107"></a>
-<span class="sourceLineNo">108</span>      tracker.resetModified();<a name="line.108"></a>
-<span class="sourceLineNo">109</span>    } finally {<a name="line.109"></a>
-<span class="sourceLineNo">110</span>      tracker.setKeepDeletes(false);<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    }<a name="line.111"></a>
-<span class="sourceLineNo">112</span>  }<a name="line.112"></a>
-<span class="sourceLineNo">113</span><a name="line.113"></a>
-<span class="sourceLineNo">114</span>  public static void writeHeader(OutputStream stream, ProcedureWALHeader header)<a name="line.114"></a>
-<span class="sourceLineNo">115</span>      throws IOException {<a name="line.115"></a>
-<span class="sourceLineNo">116</span>    header.writeDelimitedTo(stream);<a name="line.116"></a>
-<span class="sourceLineNo">117</span>  }<a name="line.117"></a>
-<span class="sourceLineNo">118</span><a name="line.118"></a>
-<span class="sourceLineNo">119</span>  /*<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   * +-----------------+<a name="line.120"></a>
-<span class="sourceLineNo">121</span>   * | END OF WAL DATA | &lt;---+<a name="line.121"></a>
-<span class="sourceLineNo">122</span>   * +-----------------+     |<a name="line.122"></a>
-<span class="sourceLineNo">123</span>   * |                 |     |<a name="line.123"></a>
-<span class="sourceLineNo">124</span>   * |     Tracker     |     |<a name="line.124"></a>
-<span class="sourceLineNo">125</span>   * |                 |     |<a name="line.125"></a>
-<span class="sourceLineNo">126</span>   * +-----------------+     |<a name="line.126"></a>
-<span class="sourceLineNo">127</span>   * |     version     |     |<a name="line.127"></a>
-<span class="sourceLineNo">128</span>   * +-----------------+     |<a name="line.128"></a>
-<span class="sourceLineNo">129</span>   * |  TRAILER_MAGIC  |     |<a name="line.129"></a>
-<span class="sourceLineNo">130</span>   * +-----------------+     |<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * |      offset     |-----+<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   * +-----------------+<a name="line.132"></a>
-<span class="sourceLineNo">133</span>   */<a name="line.133"></a>
-<span class="sourceLineNo">134</span>  public static long writeTrailer(FSDataOutputStream stream, ProcedureStoreTracker tracker)<a name="line.134"></a>
-<span class="sourceLineNo">135</span>      throws IOException {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    long offset = stream.getPos();<a name="line.136"></a>
-<span class="sourceLineNo">137</span><a name="line.137"></a>
-<span class="sourceLineNo">138</span>    // Write EOF Entry<a name="line.138"></a>
-<span class="sourceLineNo">139</span>    ProcedureWALEntry.newBuilder()<a name="line.139"></a>
-<span class="sourceLineNo">140</span>      .setType(ProcedureWALEntry.Type.PROCEDURE_WAL_EOF)<a name="line.140"></a>
-<span class="sourceLineNo">141</span>      .build().writeDelimitedTo(stream);<a name="line.141"></a>
+<span class="sourceLineNo">091</span>    // Ignore the last log which is current active log.<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    while (logs.hasNext()) {<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      ProcedureWALFile log = logs.next();<a name="line.93"></a>
+<span class="sourceLineNo">094</span>      log.open();<a name="line.94"></a>
+<span class="sourceLineNo">095</span>      try {<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        reader.read(log);<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      } finally {<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        log.close();<a name="line.98"></a>
+<span class="sourceLineNo">099</span>      }<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    }<a name="line.100"></a>
+<span class="sourceLineNo">101</span>    reader.finish();<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span>    // The tracker is now updated with all the procedures read from the logs<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    if (tracker.isPartial()) {<a name="line.104"></a>
+<span class="sourceLineNo">105</span>      tracker.setPartialFlag(false);<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    }<a name="line.106"></a>
+<span class="sourceLineNo">107</span>    tracker.resetModified();<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    tracker.setKeepDeletes(false);<a name="line.108"></a>
+<span class="sourceLineNo">109</span>  }<a name="line.109"></a>
+<span class="sourceLineNo">110</span><a name="line.110"></a>
+<span class="sourceLineNo">111</span>  public static void writeHeader(OutputStream stream, ProcedureWALHeader header)<a name="line.111"></a>
+<span class="sourceLineNo">112</span>      throws IOException {<a name="line.112"></a>
+<span class="sourceLineNo">113</span>    header.writeDelimitedTo(stream);<a name="line.113"></a>
+<span class="sourceLineNo">114</span>  }<a name="line.114"></a>
+<span class="sourceLineNo">115</span><a name="line.115"></a>
+<span class="sourceLineNo">116</span>  /*<a name="line.116"></a>
+<span class="sourceLineNo">117</span>   * +-----------------+<a name="line.117"></a>
+<span class="sourceLineNo">118</span>   * | END OF WAL DATA | &lt;---+<a name="line.118"></a>
+<span class="sourceLineNo">119</span>   * +-----------------+     |<a name="line.119"></a>
+<span class="sourceLineNo">120</span>   * |                 |     |<a name="line.120"></a>
+<span class="sourceLineNo">121</span>   * |     Tracker     |     |<a name="line.121"></a>
+<span class="sourceLineNo">122</span>   * |                 |     |<a name="line.122"></a>
+<span class="sourceLineNo">123</span>   * +-----------------+     |<a name="line.123"></a>
+<span class="sourceLineNo">124</span>   * |     version     |     |<a name="line.124"></a>
+<span class="sourceLineNo">125</span>   * +-----------------+     |<a name="line.125"></a>
+<span class="sourceLineNo">126</span>   * |  TRAILER_MAGIC  |     |<a name="line.126"></a>
+<span class="sourceLineNo">127</span>   * +-----------------+     |<a name="line.127"></a>
+<span class="sourceLineNo">128</span>   * |      offset     |-----+<a name="line.128"></a>
+<span class="sourceLineNo">129</span>   * +-----------------+<a name="line.129"></a>
+<span class="sourceLineNo">130</span>   */<a name="line.130"></a>
+<span class="sourceLineNo">131</span>  public static long writeTrailer(FSDataOutputStream stream, ProcedureStoreTracker tracker)<a name="line.131"></a>
+<span class="sourceLineNo">132</span>      throws IOException {<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    long offset = stream.getPos();<a name="line.133"></a>
+<span class="sourceLineNo">134</span><a name="line.134"></a>
+<span class="sourceLineNo">135</span>    // Write EOF Entry<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    ProcedureWALEntry.newBuilder()<a name="line.136"></a>
+<span class="sourceLineNo">137</span>      .setType(ProcedureWALEntry.Type.PROCEDURE_WAL_EOF)<a name="line.137"></a>
+<span class="sourceLineNo">138</span>      .build().writeDelimitedTo(stream);<a name="line.138"></a>
+<span class="sourceLineNo">139</span><a name="line.139"></a>
+<span class="sourceLineNo">140</span>    // Write Tracker<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    tracker.toProto().writeDelimitedTo(stream);<a name="line.141"></a>
 <span class="sourceLineNo">142</span><a name="line.142"></a>
-<span class="sourceLineNo">143</span>    // Write Tracker<a name="line.143"></a>
-<span class="sourceLineNo">144</span>    tracker.toProto().writeDelimitedTo(stream);<a name="line.144"></a>
-<span class="sourceLineNo">145</span><a name="line.145"></a>
-<span class="sourceLineNo">146</span>    stream.write(TRAILER_VERSION);<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    StreamUtils.writeLong(stream, TRAILER_MAGIC);<a name="line.147"></a>
-<span class="sourceLineNo">148</span>    StreamUtils.writeLong(stream, offset);<a name="line.148"></a>
-<span class="sourceLineNo">149</span>    return stream.getPos() - offset;<a name="line.149"></a>
-<span class="sourceLineNo">150</span>  }<a name="line.150"></a>
-<span class="sourceLineNo">151</span><a name="line.151"></a>
-<span class="sourceLineNo">152</span>  public static ProcedureWALHeader readHeader(InputStream stream)<a name="line.152"></a>
-<span class="sourceLineNo">153</span>      throws IOException {<a name="line.153"></a>
-<span class="sourceLineNo">154</span>    ProcedureWALHeader header;<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    try {<a name="line.155"></a>
-<span class="sourceLineNo">156</span>      header = ProcedureWALHeader.parseDelimitedFrom(stream);<a name="line.156"></a>
-<span class="sourceLineNo">157</span>    } catch (InvalidProtocolBufferException e) {<a name="line.157"></a>
-<span class="sourceLineNo">158</span>      throw new InvalidWALDataException(e);<a name="line.158"></a>
-<span class="sourceLineNo">159</span>    }<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span>    if (header == null) {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>      throw new InvalidWALDataException("No data available to read the Header");<a name="line.162"></a>
-<span class="sourceLineNo">163</span>    }<a name="line.163"></a>
-<span class="sourceLineNo">164</span><a name="line.164"></a>
-<span class="sourceLineNo">165</span>    if (header.getVersion() &lt; 0 || header.getVersion() != HEADER_VERSION) {<a name="line.165"></a>
-<span class="sourceLineNo">166</span>      throw new InvalidWALDataException("Invalid Header version. got " + header.getVersion() +<a name="line.166"></a>
-<span class="sourceLineNo">167</span>          " expected " + HEADER_VERSION);<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    }<a name="line.168"></a>
-<span class="sourceLineNo">169</span><a name="line.169"></a>
-<span class="sourceLineNo">170</span>    if (header.getType() &lt; 0 || header.getType() &gt; LOG_TYPE_MAX_VALID) {<a name="line.170"></a>
-<span class="sourceLineNo">171</span>      throw new InvalidWALDataException("Invalid header type. got " + header.getType());<a name="line.171"></a>
-<span class="sourceLineNo">172</span>    }<a name="line.172"></a>
+<span class="sourceLineNo">143</span>    stream.write(TRAILER_VERSION);<a name="line.143"></a>
+<span class="sourceLineNo">144</span>    StreamUtils.writeLong(stream, TRAILER_MAGIC);<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    StreamUtils.writeLong(stream, offset);<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    return stream.getPos() - offset;<a name="line.146"></a>
+<span class="sourceLineNo">147</span>  }<a name="line.147"></a>
+<span class="sourceLineNo">148</span><a name="line.148"></a>
+<span class="sourceLineNo">149</span>  public static ProcedureWALHeader readHeader(InputStream stream)<a name="line.149"></a>
+<span class="sourceLineNo">150</span>      throws IOException {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    ProcedureWALHeader header;<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    try {<a name="line.152"></a>
+<span class="sourceLineNo">153</span>      header = ProcedureWALHeader.parseDelimitedFrom(stream);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>    } catch (InvalidProtocolBufferException e) {<a name="line.154"></a>
+<span class="sourceLineNo">155</span>      throw new InvalidWALDataException(e);<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    }<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span>    if (header == null) {<a name="line.158"></a>
+<span class="sourceLineNo">159</span>      throw new InvalidWALDataException("No data available to read the Header");<a name="line.159"></a>
+<span class="sourceLineNo">160</span>    }<a name="line.160"></a>
+<span class="sourceLineNo">161</span><a name="line.161"></a>
+<span class="sourceLineNo">162</span>    if (header.getVersion() &lt; 0 || header.getVersion() != HEADER_VERSION) {<a name="line.162"></a>
+<span class="sourceLineNo">163</span>      throw new InvalidWALDataException("Invalid Header version. got " + header.getVersion() +<a name="line.163"></a>
+<span class="sourceLineNo">164</span>          " expected " + HEADER_VERSION);<a name="line.164"></a>
+<span class="sourceLineNo">165</span>    }<a name="line.165"></a>
+<span class="sourceLineNo">166</span><a name="line.166"></a>
+<span class="sourceLineNo">167</span>    if (header.getType() &lt; 0 || header.getType() &gt; LOG_TYPE_MAX_VALID) {<a name="line.167"></a>
+<span class="sourceLineNo">168</span>      throw new InvalidWALDataException("Invalid header type. got " + header.getType());<a name="line.168"></a>
+<span class="sourceLineNo">169</span>    }<a name="line.169"></a>
+<span class="sourceLineNo">170</span><a name="line.170"></a>
+<span class="sourceLineNo">171</span>    return header;<a name="line.171"></a>
+<span class="sourceLineNo">172</span>  }<a name="line.172"></a>
 <span class="sourceLineNo">173</span><a name="line.173"></a>
-<span class="sourceLineNo">174</span>    return header;<a name="line.174"></a>
-<span class="sourceLineNo">175</span>  }<a name="line.175"></a>
-<span class="sourceLineNo">176</span><a name="line.176"></a>
-<span class="sourceLineNo">177</span>  public static ProcedureWALTrailer readTrailer(FSDataInputStream stream, long startPos, long size)<a name="line.177"></a>
-<span class="sourceLineNo">178</span>      throws IOException {<a name="line.178"></a>
-<span class="sourceLineNo">179</span>    // Beginning of the Trailer Jump. 17 = 1 byte version + 8 byte magic + 8 byte offset<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    long trailerPos = size - 17;<a name="line.180"></a>
-<span class="sourceLineNo">181</span><a name="line.181"></a>
-<span class="sourceLineNo">182</span>    if (trailerPos &lt; startPos) {<a name="line.182"></a>
-<span class="sourceLineNo">183</span>      throw new InvalidWALDataException("Missing trailer: size=" + size + " startPos=" + startPos);<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    }<a name="line.184"></a>
-<span class="sourceLineNo">185</span><a name="line.185"></a>
-<span class="sourceLineNo">186</span>    stream.seek(trailerPos);<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    int version = stream.read();<a name="line.187"></a>
-<span class="sourceLineNo">188</span>    if (version != TRAILER_VERSION) {<a name="line.188"></a>
-<span class="sourceLineNo">189</span>      throw new InvalidWALDataException("Invalid Trailer version. got " + version +<a name="line.189"></a>
-<span class="sourceLineNo">190</span>          " expected " + TRAILER_VERSION);<a name="line.190"></a>
-<span class="sourceLineNo">191</span>    }<a name="line.191"></a>
-<span class="sourceLineNo">192</span><a name="line.192"></a>
-<span class="sourceLineNo">193</span>    long magic = StreamUtils.readLong(stream);<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    if (magic != TRAILER_MAGIC) {<a name="line.194"></a>
-<span class="sourceLineNo">195</span>      throw new InvalidWALDataException("Invalid Trailer magic. got " + magic +<a name="line.195"></a>
-<span class="sourceLineNo">196</span>          " expected " + TRAILER_MAGIC);<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    }<a name="line.197"></a>
+<span class="sourceLineNo">174</span>  public static ProcedureWALTrailer readTrailer(FSDataInputStream stream, long startPos, long size)<a name="line.174"></a>
+<span class="sourceLineNo">175</span>      throws IOException {<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    // Beginning of the Trailer Jump. 17 = 1 byte version + 8 byte magic + 8 byte offset<a name="line.176"></a>
+<span class="sourceLineNo">177</span>    long trailerPos = size - 17;<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span>    if (trailerPos &lt; startPos) {<a name="line.179"></a>
+<span class="sourceLineNo">180</span>      throw new InvalidWALDataException("Missing trailer: size=" + size + " startPos=" + startPos);<a name="line.180"></a>
+<span class="sourceLineNo">181</span>    }<a name="line.181"></a>
+<span class="sourceLineNo">182</span><a name="line.182"></a>
+<span class="sourceLineNo">183</span>    stream.seek(trailerPos);<a name="line.183"></a>
+<span class="sourceLineNo">184</span>    int version = stream.read();<a name="line.184"></a>
+<span class="sourceLineNo">185</span>    if (version != TRAILER_VERSION) {<a name="line.185"></a>
+<span class="sourceLineNo">186</span>      throw new InvalidWALDataException("Invalid Trailer version. got " + version +<a name="line.186"></a>
+<span class="sourceLineNo">187</span>          " expected " + TRAILER_VERSION);<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    }<a name="line.188"></a>
+<span class="sourceLineNo">189</span><a name="line.189"></a>
+<span class="sourceLineNo">190</span>    long magic = StreamUtils.readLong(stream);<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    if (magic != TRAILER_MAGIC) {<a name="line.191"></a>
+<span class="sourceLineNo">192</span>      throw new InvalidWALDataException("Invalid Trailer magic. got " + magic +<a name="line.192"></a>
+<span class="sourceLineNo">193</span>          " expected " + TRAILER_MAGIC);<a name="line.193"></a>
+<span class="sourceLineNo">194</span>    }<a name="line.194"></a>
+<span class="sourceLineNo">195</span><a name="line.195"></a>
+<span class="sourceLineNo">196</span>    long trailerOffset = StreamUtils.readLong(stream);<a name="line.196"></a>
+<span class="sourceLineNo">197</span>    stream.seek(trailerOffset);<a name="line.197"></a>
 <span class="sourceLineNo">198</span><a name="line.198"></a>
-<span class="sourceLineNo">199</span>    long trailerOffset = StreamUtils.readLong(stream);<a name="line.199"></a>
-<span class="sourceLineNo">200</span>    stream.seek(trailerOffset);<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span>    ProcedureWALEntry entry = readEntry(stream);<a name="line.202"></a>
-<span class="sourceLineNo">203</span>    if (entry.getType() != ProcedureWALEntry.Type.PROCEDURE_WAL_EOF) {<a name="line.203"></a>
-<span class="sourceLineNo">204</span>      throw new InvalidWALDataException("Invalid Trailer begin");<a name="line.204"></a>
-<span class="sourceLineNo">205</span>    }<a name="line.205"></a>
-<span class="sourceLineNo">206</span><a name="line.206"></a>
-<span class="sourceLineNo">207</span>    ProcedureWALTrailer trailer = ProcedureWALTrailer.newBuilder()<a name="line.207"></a>
-<span class="sourceLineNo">208</span>      .setVersion(version)<a name="line.208"></a>
-<span class="sourceLineNo">209</span>      .setTrackerPos(stream.getPos())<a name="line.209"></a>
-<span class="sourceLineNo">210</span>      .build();<a name="line.210"></a>
-<span class="sourceLineNo">211</span>    return trailer;<a name="line.211"></a>
-<span class="sourceLineNo">212</span>  }<a name="line.212"></a>
-<span class="sourceLineNo">213</span><a name="line.213"></a>
-<span class="sourceLineNo">214</span>  public static ProcedureWALEntry readEntry(InputStream stream) throws IOException {<a name="line.214"></a>
-<span class="sourceLineNo">215</span>    return ProcedureWALEntry.parseDelimitedFrom(stream);<a name="line.215"></a>
-<span class="sourceLineNo">216</span>  }<a name="line.216"></a>
-<span class="sourceLineNo">217</span><a name="line.217"></a>
-<span class="sourceLineNo">218</span>  public static void writeEntry(ByteSlot slot, ProcedureWALEntry.Type type,<a name="line.218"></a>
-<span class="sourceLineNo">219</span>      Procedure&lt;?&gt; proc, Procedure&lt;?&gt;[] subprocs) throws IOException {<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.220"></a>
-<span class="sourceLineNo">221</span>    builder.setType(type);<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));<a name="line.222"></a>
-<span class="sourceLineNo">223</span>    if (subprocs != null) {<a name="line.223"></a>
-<span class="sourceLineNo">224</span>      for (int i = 0; i &lt; subprocs.length; ++i) {<a name="line.224"></a>
-<span class="sourceLineNo">225</span>        builder.addProcedure(ProcedureUtil.convertToProtoProcedure(subprocs[i]));<a name="line.225"></a>
-<span class="sourceLineNo">226</span>      }<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    }<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    builder.build().writeDelimitedTo(slot);<a name="line.228"></a>
-<span class="sourceLineNo">229</span>  }<a name="line.229"></a>
-<span class="sourceLineNo">230</span><a name="line.230"></a>
-<span class="sourceLineNo">231</span>  public static void writeInsert(ByteSlot slot, Procedure&lt;?&gt; proc)<a name="line.231"></a>
-<span class="sourceLineNo">232</span>      throws IOException {<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INIT, proc, null);<a name="line.233"></a>
-<span class="sourceLineNo">234</span>  }<a name="line.234"></a>
-<span class="sourceLineNo">235</span><a name="line.235"></a>
-<span class="sourceLineNo">236</span>  public static void writeInsert(ByteSlot slot, Procedure&lt;?&gt; proc, Procedure&lt;?&gt;[] subprocs)<a name="line.236"></a>
-<span class="sourceLineNo">237</span>      throws IOException {<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INSERT, proc, subprocs);<a name="line.238"></a>
-<span class="sourceLineNo">239</span>  }<a name="line.239"></a>
-<span class="sourceLineNo">240</span><a name="line.240"></a>
-<span class="sourceLineNo">241</span>  public static void writeUpdate(ByteSlot slot, Procedure&lt;?&gt; proc)<a name="line.241"></a>
-<span class="sourceLineNo">242</span>      throws IOException {<a name="line.242"></a>
-<span class="sourceLineNo">243</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_UPDATE, proc, null);<a name="line.243"></a>
-<span class="sourceLineNo">244</span>  }<a name="line.244"></a>
-<span class="sourceLineNo">245</span><a name="line.245"></a>
-<span class="sourceLineNo">246</span>  public static void writeDelete(ByteSlot slot, long procId)<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      throws IOException {<a name="line.247"></a>
-<span class="sourceLineNo">248</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.248"></a>
-<span class="sourceLineNo">249</span>    builder.setType(ProcedureWALEntry.Type.PROCEDURE_WAL_DELETE);<a name="line.249"></a>
-<span class="sourceLineNo">250</span>    builder.setProcId(procId);<a name="line.250"></a>
-<span class="sourceLineNo">251</span>    builder.build().writeDelimitedTo(slot);<a name="line.251"></a>
-<span class="sourceLineNo">252</span>  }<a name="line.252"></a>
-<span class="sourceLineNo">253</span><a name="line.253"></a>
-<span class="sourceLineNo">254</span>  public static void writeDelete(ByteSlot slot, Procedure&lt;?&gt; proc, long[] subprocs)<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      throws IOException {<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.256"></a>
-<span class="sourceLineNo">257</span>    builder.setType(ProcedureWALEntry.Type.PROCEDURE_WAL_DELETE);<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    builder.setProcId(proc.getProcId());<a name="line.258"></a>
-<span class="sourceLineNo">259</span>    if (subprocs != null) {<a name="line.259"></a>
-<span class="sourceLineNo">260</span>      builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));<a name="line.260"></a>
-<span class="sourceLineNo">261</span>      for (int i = 0; i &lt; subprocs.length; ++i) {<a name="line.261"></a>
-<span class="sourceLineNo">262</span>        builder.addChildId(subprocs[i]);<a name="line.262"></a>
-<span class="sourceLineNo">263</span>      }<a name="line.263"></a>
-<span class="sourceLineNo">264</span>    }<a name="line.264"></a>
-<span class="sourceLineNo">265</span>    builder.build().writeDelimitedTo(slot);<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  }<a name="line.266"></a>
-<span class="sourceLineNo">267</span>}<a name="line.267"></a>
+<span class="sourceLineNo">199</span>    ProcedureWALEntry entry = readEntry(stream);<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    if (entry.getType() != ProcedureWALEntry.Type.PROCEDURE_WAL_EOF) {<a name="line.200"></a>
+<span class="sourceLineNo">201</span>      throw new InvalidWALDataException("Invalid Trailer begin");<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    }<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>    ProcedureWALTrailer trailer = ProcedureWALTrailer.newBuilder()<a name="line.204"></a>
+<span class="sourceLineNo">205</span>      .setVersion(version)<a name="line.205"></a>
+<span class="sourceLineNo">206</span>      .setTrackerPos(stream.getPos())<a name="line.206"></a>
+<span class="sourceLineNo">207</span>      .build();<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    return trailer;<a name="line.208"></a>
+<span class="sourceLineNo">209</span>  }<a name="line.209"></a>
+<span class="sourceLineNo">210</span><a name="line.210"></a>
+<span class="sourceLineNo">211</span>  public static ProcedureWALEntry readEntry(InputStream stream) throws IOException {<a name="line.211"></a>
+<span class="sourceLineNo">212</span>    return ProcedureWALEntry.parseDelimitedFrom(stream);<a name="line.212"></a>
+<span class="sourceLineNo">213</span>  }<a name="line.213"></a>
+<span class="sourceLineNo">214</span><a name="line.214"></a>
+<span class="sourceLineNo">215</span>  public static void writeEntry(ByteSlot slot, ProcedureWALEntry.Type type,<a name="line.215"></a>
+<span class="sourceLineNo">216</span>      Procedure&lt;?&gt; proc, Procedure&lt;?&gt;[] subprocs) throws IOException {<a name="line.216"></a>
+<span class="sourceLineNo">217</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.217"></a>
+<span class="sourceLineNo">218</span>    builder.setType(type);<a name="line.218"></a>
+<span class="sourceLineNo">219</span>    builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    if (subprocs != null) {<a name="line.220"></a>
+<span class="sourceLineNo">221</span>      for (int i = 0; i &lt; subprocs.length; ++i) {<a name="line.221"></a>
+<span class="sourceLineNo">222</span>        builder.addProcedure(ProcedureUtil.convertToProtoProcedure(subprocs[i]));<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      }<a name="line.223"></a>
+<span class="sourceLineNo">224</span>    }<a name="line.224"></a>
+<span class="sourceLineNo">225</span>    builder.build().writeDelimitedTo(slot);<a name="line.225"></a>
+<span class="sourceLineNo">226</span>  }<a name="line.226"></a>
+<span class="sourceLineNo">227</span><a name="line.227"></a>
+<span class="sourceLineNo">228</span>  public static void writeInsert(ByteSlot slot, Procedure&lt;?&gt; proc)<a name="line.228"></a>
+<span class="sourceLineNo">229</span>      throws IOException {<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INIT, proc, null);<a name="line.230"></a>
+<span class="sourceLineNo">231</span>  }<a name="line.231"></a>
+<span class="sourceLineNo">232</span><a name="line.232"></a>
+<span class="sourceLineNo">233</span>  public static void writeInsert(ByteSlot slot, Procedure&lt;?&gt; proc, Procedure&lt;?&gt;[] subprocs)<a name="line.233"></a>
+<span class="sourceLineNo">234</span>      throws IOException {<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INSERT, proc, subprocs);<a name="line.235"></a>
+<span class="sourceLineNo">236</span>  }<a name="line.236"></a>
+<span class="sourceLineNo">237</span><a name="line.237"></a>
+<span class="sourceLineNo">238</span>  public static void writeUpdate(ByteSlot slot, Procedure&lt;?&gt; proc)<a name="line.238"></a>
+<span class="sourceLineNo">239</span>      throws IOException {<a name="line.239"></a>
+<span class="sourceLineNo">240</span>    writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_UPDATE, proc, null);<a name="line.240"></a>
+<span class="sourceLineNo">241</span>  }<a name="line.241"></a>
+<span class="sourceLineNo">242</span><a name="line.242"></a>
+<span class="sourceLineNo">243</span>  public static void writeDelete(ByteSlot slot, long procId)<a name="line.243"></a>
+<span class="sourceLineNo">244</span>      throws IOException {<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.245"></a>
+<span class="sourceLineNo">246</span>    builder.setType(ProcedureWALEntry.Type.PROCEDURE_WAL_DELETE);<a name="line.246"></a>
+<span class="sourceLineNo">247</span>    builder.setProcId(procId);<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    builder.build().writeDelimitedTo(slot);<a name="line.248"></a>
+<span class="sourceLineNo">249</span>  }<a name="line.249"></a>
+<span class="sourceLineNo">250</span><a name="line.250"></a>
+<span class="sourceLineNo">251</span>  public static void writeDelete(ByteSlot slot, Procedure&lt;?&gt; proc, long[] subprocs)<a name="line.251"></a>
+<span class="sourceLineNo">252</span>      throws IOException {<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    final ProcedureWALEntry.Builder builder = ProcedureWALEntry.newBuilder();<a name="line.253"></a>
+<span class="sourceLineNo">254</span>    builder.setType(ProcedureWALEntry.Type.PROCEDURE_WAL_DELETE);<a name="line.254"></a>
+<span class="sourceLineNo">255</span>    builder.setProcId(proc.getProcId());<a name="line.255"></a>
+<span class="sourceLineNo">256</span>    if (subprocs != null) {<a name="line.256"></a>
+<span class="sourceLineNo">257</span>      builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));<a name="line.257"></a>
+<span class="sourceLineNo">258</span>      for (int i = 0; i &lt; subprocs.length; ++i) {<a name="line.258"></a>
+<span class="sourceLineNo">259</span>        builder.addChildId(subprocs[i]);<a name="line.259"></a>
+<span class="sourceLineNo">260</span>      }<a name="line.260"></a>
+<span class="sourceLineNo">261</span>    }<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    builder.build().writeDelimitedTo(slot);<a name="line.262"></a>
+<span class="sourceLineNo">263</span>  }<a name="line.263"></a>
+<span class="sourceLineNo">264</span>}<a name="line.264"></a>
 
 
 


Mime
View raw message