-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nexus: reduce use of Arc where unnecessary (#827)
Also have CatalogConfig borrow since args live for program's entire lifecycle get_executor now uses `entry` which isn't a clear win, as the API forces a clone on peer.name & takes a write lock, but now there's no race where two concurrent calls to get_executor create two separate connections A follow up would be to have Peer include id (maybe out of band, because protobufs), allowing many of these hashmaps to be keyed on id. That'd also avoid cache invalidation in the future if `ALTER PEER old RENAME TO new` were implemented Also properly escape string with single quote in `NexusBackend::parameter_to_string`
- Loading branch information
Showing
5 changed files
with
92 additions
and
124 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
Oops, something went wrong.