insert into meta_snapshot () values(CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,#{destination},#{binlogFile},#{binlogOffest},#{binlogMasterId},#{binlogTimestamp},#{data},#{extra}) update meta_snapshot set gmt_modified=now(), binlog_file=#{binlogFile},binlog_offest=#{binlogOffest},binlog_master_id=#{binlogMasterId},binlog_timestamp=#{binlogTimestamp},data=#{data},extra=#{extra} where destination=#{destination} and binlog_timestamp=0 delete from meta_snapshot where destination=#{destination} 0 ]]>