On 05/11/2010 10:30 AM, Sergei Golubchik wrote:
> Hi, Mats!
> On May 11, Mats Kindahl wrote:
>> Hi Zardosht,
>> The flag HA_EXTRA_WRITE_CAN_REPLACE only is set on the slave for Write
>> rows when --slave-exec-mode is IDEMPOTENT *or when the NDB Cluster
>> engine is used*. In other words, the NDB engine is hardcoded to always
>> use IDEMPOTENT.
> Which is, arguably, a bug. The flag is not HA_EXTRA_IS_NDB_CLUSTER,
> other engines may take use of it too.
Agree on that, but we have no support for allowing the engine to give
this information right now.
Note that the HA_EXTRA flags are means for the server to communicate
with the engine, not the other way around. This flag says "I'm executing
a replace right now, so you can optimize for that if you like."
Senior Software Engineer
Database Technology Group