Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/flux: Fix unlink corner cases with links
Fix corner cases in kvs unlink in regards to links. If the link pointed to an invalid target, namespace, or had an infinite cycle, the unlink_safety_check() function would fail and not allow the user to remove the link. Instead, unlink should always allow links to be removed. Re-work unlink_saftety_check() to ensure links are always removable. Add regression tests. Fixes #2129
- Loading branch information
Showing
2 changed files
with
57 additions
and
9 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