Remove Inner SQL Connection and Session Pool Caching - #1207
Conversation
7c66016 to
daed74e
Compare
|
The mapping Dima issue is about removing ObInnerSQLConnectionPool and using it only as needed. |
Why is reference counting still needed? |
What's special about this release, and why is it called release_inner_sql_connection_for_proxy? What's its relationship with the proxy? |
This provides a Proxy for Oblib to resolve the WEAK_SYMBOL function dependencies from upper layers. There's no special cleanup logic, just an unref, used to isolate the dependencies between oblib and observer. |
Reference counting is unrelated to the connection pool; it ensures that the Conn is not released prematurely while a ReadResult is using the Session inside that Conn. This is the same function originally used for release—only the call location has been moved. |
The smart pointer release has been unified, and |
Changed to use ObSharedGuard smart pointer for allocation and deallocation. |
Using a guard in a local function scope is relatively safe, but using it as a class member can be dangerous. |
Task Description
Solution Description
Passed Regressions
Upgrade Compatibility
Other Information
Release Note