In my last post (see it for details) about stored procedure
replication I was wrong.
I'm using 5.0.30 and, in fact, CALL statements are not written to
the binlog. My knowledge about SP replication was before 5.0.12.
This morning I read carefully the manual :-)
But my problem is real. Using multiple rand() inside a SP cause wrong value replication on the slaves.
Here is the binlog content of my previous post example:
corra@localhost[(none)]> show binlog events in 'veleno-bin.000003' from 18403385 limit 4\G
*************************** 1. row ***************************
Log_name: veleno-bin.000003
Pos: 18403385
Event_type: RAND
Server_id: 1
End_log_pos: 18403420
Info: rand_seed1=1044525788,rand_seed2=146374381
*************************** 2. row ***************************
Log_name: veleno-bin.000003
Pos: …[Read more]