-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
69479: sql: fix some issues around the portal state management r=yuzefovich a=yuzefovich This commit fixes some issues around the handling of portals in the prepared statements namespace. Namely: - it fixes the reference counting that was broken in cf0d5e4 (where we switched to storing the portal by value instead of by pointer, but the refcounts need to be shared between all references which wasn't true in that commit) by entirely removing the ref counting - it fixes the missing memory accounting for a copy of the portal - it deletes all of the portals from `prepStmtsNamespaceAtTxnRewindPos` in `resetExtraTxnState` whenever a txn commits or rolls back - it adjusts a comment on the method deleting a prepared statement to match the implementation. Release note: None. Release justification: fix to a long-standing bug. Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
- Loading branch information
Showing
3 changed files
with
63 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters