Skip to content

in slave query event,loss datanbaseName #6

@rusongit

Description

@rusongit

in master queryEvent:

client print:

QueryEvent[header=BinlogEventV4HeaderImpl[timestamp=1421203248000,eventType=2,serverId=100011084,eventLength=59,nextPosition=365191,flags=8,timestampOfReceipt=1421215901077],threadId=25786576,elapsedTime=28751,databaseNameLength=0,errorCode=0,statusVariablesLength=21,statusVariables=[QFlags2Code[flags=0], QSQLModeCode[sqlMode=524288], QCharsetCode[characterSetClient=33,collationConnection=33,collationServer=33]],databaseName=test,sql=BEGIN]

atabaseName is test

but in slave queryEvent:
client print:

QueryEvent[header=BinlogEventV4HeaderImpl[timestamp=1421203248000,eventType=2,serverId=100011084,eventLength=59,nextPosition=365191,flags=8,timestampOfReceipt=1421215901077],threadId=25786576,elapsedTime=28751,databaseNameLength=0,errorCode=0,statusVariablesLength=21,statusVariables=[QFlags2Code[flags=0], QSQLModeCode[sqlMode=524288], QCharsetCode[characterSetClient=33,collationConnection=33,collationServer=33]],databaseName=,sql=BEGIN]

databaseName is ''

why?
they binglog is same:

at 336

#150113 17:10:35 server id 1 end_log_pos 405 Query thread_id=5 exec_time=0 error_code=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions