-
-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go: sqle,remotesrv: Implement sql.Session lifecycle callbacks for sql…
….Contexts used in remotesrv RPCs. This PR changes each RPC invocation against the gRPC and HTTP servers implementing remotesapi and cluster replication to create a sql.Context which lives the duration of the call. The Session for that call gets SessionCommand{Begin,End} and SessionEnd lifecycle callbacks so that it can participate in GC safepoint rendezvous appropriately. Previously the remotesrv.DBCache and the user/password remotesapi authentication implementation would simply create new sql.Contexts whenever they needed them. There could be multiple sql.Contexts for the single server call.
- Loading branch information
Showing
4 changed files
with
111 additions
and
8 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
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