Skip to content

Commit

Permalink
Merge pull request #35 from chenyun/master
Browse files Browse the repository at this point in the history
Updated EventType.QUERY description / Fixed EventHeaderV4.eventLength deserialization
  • Loading branch information
shyiko committed Apr 3, 2015
2 parents fa49dd2 + a7da41c commit f1fb18b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public enum EventType {
*/
START_V3,
/**
* Represents query statement.
* Written when an updating statement is done.
*/
QUERY,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public EventHeaderV4 deserialize(ByteArrayInputStream inputStream) throws IOExce
header.setTimestamp(inputStream.readLong(4) * 1000L);
header.setEventType(getEventType(inputStream.readInteger(1)));
header.setServerId(inputStream.readLong(4));
header.setEventLength(inputStream.readInteger(4));
header.setEventLength(inputStream.readLong(4));
header.setNextPosition(inputStream.readLong(4));
header.setFlags(inputStream.readInteger(2));
return header;
Expand Down

0 comments on commit f1fb18b

Please sign in to comment.