Spinlock added for slave state set

Spinlock added for slave state set
This commit is contained in:
MassimilianoPinto
2015-11-09 09:59:36 +01:00
parent 5e71ff093f
commit e7dbc605af

View File

@ -2261,9 +2261,12 @@ ROUTER_INSTANCE *router = slave->router;
slave->binlogfile,
(unsigned long)slave->binlog_pos)));
spinlock_acquire(&slave->catch_lock);
slave->cstate |= CS_EXPECTCB;
spinlock_release(&slave->catch_lock);
poll_fake_write_event(slave->dcb);
return 0;
return 0;
}
spinlock_acquire(&slave->catch_lock);