• unknown's avatar
    Bug #29536: timestamp inconsistent in replication around 1970 · d0f21f84
    unknown authored
    MySQL replicates the time zone only when operations that involve
    it are performed. This is controlled by a flag. But this flag
    is set only on successful operation.
    The flag must be set also when there is an error that involves
    a timezone (so the master would replicate the error to the slaves). 
    
    Fixed by moving the setting of the flag before the operation
    (so it apples to errors as well).
    
    
    mysql-test/r/rpl_timezone.result:
      Bug #29536: test case
    mysql-test/t/rpl_timezone.test:
      Bug #29536: test case
    sql/field.cc:
      Bug #29536: move setting of the flag before the operation
      (so it apples to errors as well).
    sql/time.cc:
      Bug #29536: move setting of the flag before the operation
      (so it apples to errors as well).
    d0f21f84
time.cc 19.8 KB