Append received data to CDC::TIMEOUT errors
The extra output of received data should be added only to timeout errors, not to all errors.
This commit is contained in:
@ -280,7 +280,7 @@ bool Connection::connect(const std::string& table, const std::string& gtid)
|
||||
{
|
||||
rval = true;
|
||||
}
|
||||
else
|
||||
else if (m_error == CDC::TIMEOUT)
|
||||
{
|
||||
m_error += ". Data received so far: '";
|
||||
std::copy(m_buffer.begin(), m_buffer.end(), std::back_inserter(m_error));
|
||||
|
Reference in New Issue
Block a user