MXS-2025 RWBackends as a vector of unique_ptr:s

For lifetime management keep RWBackends in a vector of unique_ptrs.
RWSplitSession keeps the unique_ptrs very private, and provides a vector
of plain pointers for all other interfaces.
This commit is contained in:
Niclas Antti
2018-11-29 11:57:28 +02:00
parent 91f6f374a8
commit 0d09b56f58
9 changed files with 52 additions and 35 deletions

View File

@ -43,7 +43,7 @@ CatSession* Cat::newSession(MXS_SESSION* pSession)
}
}
return connected ? new CatSession(pSession, this, backends) : NULL;
return connected ? new CatSession(pSession, this, std::move(backends)) : NULL;
}
void Cat::diagnostics(DCB* dcb)