add some slave variables calculation for version 5.6 replication