Skip to content

Commit e8ac510

Browse files
committed
Fixed parsing for Heartbeat Event V2
1 parent 2f764ea commit e8ac510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/binlog_event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Heartbeat.prototype.dump = function () {
4242

4343
function Heartbeat_V2(parser) {
4444
BinlogEvent.apply(this, arguments);
45-
this.binlogName = parser.parseString(this.size);
45+
this.binlogName = parser.parseString(this.size - 8);
4646
this.position = Common.parseUInt64(parser);
4747
}
4848
util.inherits(Heartbeat_V2, BinlogEvent);

0 commit comments

Comments
 (0)