MXS-1625 Remove duplicate function
Correct test in remaining function.
This commit is contained in:
parent
77a258de86
commit
7d97bf76ea
@ -720,7 +720,7 @@ bool RWSplitSession::lock_to_master()
|
||||
|
||||
bool RWSplitSession::is_locked_to_master() const
|
||||
{
|
||||
return m_target_node && m_target_node == m_current_master;
|
||||
return m_current_master && m_target_node == m_current_master;
|
||||
}
|
||||
|
||||
bool RWSplitSession::supports_hint(HINT_TYPE hint_type) const
|
||||
|
@ -180,16 +180,6 @@ private:
|
||||
void handle_error_reply_client(DCB *backend_dcb, GWBUF *errmsg);
|
||||
bool handle_error_new_connection(DCB *backend_dcb, GWBUF *errmsg);
|
||||
|
||||
/**
|
||||
* Check if the session is locked to the master
|
||||
*
|
||||
* @return Whether the session is locked to the master
|
||||
*/
|
||||
inline bool locked_to_master() const
|
||||
{
|
||||
return m_qc.large_query() || (m_current_master && m_target_node == m_current_master);
|
||||
}
|
||||
|
||||
private:
|
||||
// QueryClassifier::Handler
|
||||
bool lock_to_master();
|
||||
|
Loading…
x
Reference in New Issue
Block a user