>>>>> "Jeremy" == Jeremy Zawodny <jzawodn@stripped> writes:
Jeremy> Sasha & others,
Jeremy> This patch adds a "-d" command-line option to mysqlbinlog so that on a
Jeremy> local log, you can output only the entries from a single database. I
Jeremy> needed this earlier when trying to track down what is causing
Jeremy> duplicate key problems on my 4.0.2 slave.
Jeremy> I spent a lot of time in mysqlbinlog.cc, sql/log_event.h, and
Jeremy> sql/log_event.cc today. I don't know if this the "right" way to make
Jeremy> the change, since my C++ is rather rusty. But it does the job.
Jeremy> Please consider the patch below (or something like it) by sig for
Jeremy> inclusion in 4.0.
Thanks; I have now applied this to the 4.0 tree.