-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18747 from manadart/dqlite-empty-relation-state
juju#18747 This fixes a panic where unit relation state is non-nil, but empty. We were attempting to prepare a Dqlite statement with the zero index of an empty slice. Now we just skip the insert operation altogether. This is code slated for rework under a new `hook` domain, to make it transactional along with ports, secrets etc. This patch constitutes a quality-of life improvement in the interim. ## QA steps Bootstrap, add a model, deploy a unit.
- Loading branch information
Showing
2 changed files
with
46 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