config: adding sources affects peers in the same context (MB #9329)
When adding a source "foo" in peer "xyz" which doesn't exist in peer "abc" using the same context, the new source appeared as new source in "abc" (okay, by design because of shared properties) and was enabled (not okay). It was meant to be disabled via the "sync = disabled" default value, except that this default had not been changed when implementing MB Changed that default now. Because "sync" is set explicitly when configuring sources, this should have no side effects.
This commit is contained in:
parent
f940be6a5e
commit
c6e0706717
|
@ -1884,7 +1884,7 @@ protected:
|
|||
string expected = ScheduleWorldConfig();
|
||||
expected += "\n"
|
||||
"peers/scheduleworld/sources/xyz/.internal.ini:# adminData = \n"
|
||||
"peers/scheduleworld/sources/xyz/config.ini:# sync = two-way\n"
|
||||
"peers/scheduleworld/sources/xyz/config.ini:# sync = disabled\n"
|
||||
"peers/scheduleworld/sources/xyz/config.ini:# type = select backend\n"
|
||||
"peers/scheduleworld/sources/xyz/config.ini:uri = dummy\n"
|
||||
"sources/xyz/config.ini:# type = select backend\n"
|
||||
|
|
|
@ -1689,7 +1689,7 @@ StringConfigProperty SyncSourceConfig::m_sourcePropSync("sync",
|
|||
" one-way-from-client = transmit changes from client\n"
|
||||
" one-way-from-server = transmit changes from server\n"
|
||||
" none (or disabled) = synchronization disabled",
|
||||
"two-way",
|
||||
"disabled",
|
||||
"",
|
||||
Values() +
|
||||
(Aliases("two-way")) +
|
||||
|
|
Loading…
Reference in New Issue