Fix to bug #609, http://bugs.mariadb.com/show_bug.cgi?id=609
If target can't be resolved, master is chosen. Bug cause master be chosen in most of the cases.
This commit is contained in:
@ -1356,7 +1356,7 @@ static route_target_t get_route_target (
|
|||||||
hint = hint->next;
|
hint = hint->next;
|
||||||
} /*< while (hint != NULL) */
|
} /*< while (hint != NULL) */
|
||||||
/** If nothing matches then choose the master */
|
/** If nothing matches then choose the master */
|
||||||
if ((target & (TARGET_ALL|TARGET_SLAVE|TARGET_MASTER)) == target)
|
if ((target & (TARGET_ALL|TARGET_SLAVE|TARGET_MASTER)) == 0)
|
||||||
{
|
{
|
||||||
target = TARGET_MASTER;
|
target = TARGET_MASTER;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user