Ensure DCB for closing session does not become persistent; remove bref_was_not_in_use.
This commit is contained in:
@ -4875,7 +4875,6 @@ static void handleError (
|
||||
bref = get_bref_from_dcb(rses, backend_dcb);
|
||||
if (bref != NULL)
|
||||
{
|
||||
bool bref_was_in_use = BREF_IS_IN_USE(bref);
|
||||
CHK_BACKEND_REF(bref);
|
||||
bref_clear_state(bref, BREF_IN_USE);
|
||||
bref_set_state(bref, BREF_CLOSED);
|
||||
@ -4960,7 +4959,6 @@ static void handle_error_reply_client(
|
||||
*/
|
||||
if ((bref = get_bref_from_dcb(rses, backend_dcb)) != NULL)
|
||||
{
|
||||
bool bref_was_in_use = BREF_IS_IN_USE(bref);
|
||||
CHK_BACKEND_REF(bref);
|
||||
bref_clear_state(bref, BREF_IN_USE);
|
||||
bref_set_state(bref, BREF_CLOSED);
|
||||
@ -5000,7 +4998,6 @@ static bool handle_error_new_connection(
|
||||
int max_slave_rlag;
|
||||
backend_ref_t* bref;
|
||||
bool succp;
|
||||
bool bref_was_in_use;
|
||||
|
||||
myrses = *rses;
|
||||
ss_dassert(SPINLOCK_IS_LOCKED(&myrses->rses_lock));
|
||||
@ -5017,7 +5014,6 @@ static bool handle_error_new_connection(
|
||||
goto return_succp;
|
||||
}
|
||||
CHK_BACKEND_REF(bref);
|
||||
bref_was_in_use = BREF_IS_IN_USE(bref);
|
||||
|
||||
/**
|
||||
* If query was sent through the bref and it is waiting for reply from
|
||||
|
Reference in New Issue
Block a user