We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddfc3f8 commit 3d362a6Copy full SHA for 3d362a6
core/sling/replication.go
@@ -761,8 +761,8 @@ func (rd *ReplicationConfig) ProcessChunks() (err error) {
761
762
func (rd *ReplicationConfig) AddStream(key string, cfg *ReplicationStreamConfig) {
763
newCfg := ReplicationStreamConfig{}
764
- g.Unmarshal(g.Marshal(cfg), &newCfg) // copy config over
765
- newCfg.dependsOn = cfg.dependsOn // set dependsOn since not marshalled
+ g.Unmarshal(g.Marshal(cfg), &newCfg) // copy config over
+ newCfg.dependsOn = g.PtrVal(cfg).dependsOn // set dependsOn since not marshalled
766
rd.Streams[key] = &newCfg
767
rd.streamsOrdered = append(rd.streamsOrdered, key)
768
0 commit comments