• Luis Soares's avatar
    BUG#53893: RBR: nullable unique key can lead to out-of-sync slave · 1b61dcf4
    Luis Soares authored
      
    Post-push fix.
      
    There was a valgrind issue on the loop that checks whether there
    are NULL fields in the UNIQUE KEY or not. In detail, for the last 
    iteration the server may read out of the key_part array boundaries,
    making valgrind to output warnings.
    
    We fix this by correcting the loop, ie, moving the part that reads
    from the key_part to be inside the loop statement block. This way
    the assignment is protected by the loop condition.
    1b61dcf4
log_event.cc 303 KB