• Luis Soares's avatar
    BUG#53893: RBR: nullable unique key can lead to out-of-sync slave · ee0738ed
    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.
    ee0738ed
log_event.cc 303 KB