Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stream sourcing & mirroring overlap errors (#4052)
When adding or updating sources/mirrors, server was checking if the stream with a given name exists to check for subject overlaps, among other things. However, if sourced/mirrored stream was `External`, checks should not be executed, as not only stream would never be found, but also, if `External` stream had the same name as the sourcing stream, the check would be wrongly performed against itself. cc @jnmoyne Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
- Loading branch information
Showing
3 changed files
with
145 additions
and
66 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