File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
internal/translation/deployment Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -734,7 +734,6 @@ func replicationSpecFromAtlas(replicationSpecs []admin.ReplicationSpec20240805)
734
734
specs = append (
735
735
specs ,
736
736
& akov2.AdvancedReplicationSpec {
737
- NumShards : spec .GetNumShards (),
738
737
ZoneName : spec .GetZoneName (),
739
738
RegionConfigs : regionConfigs ,
740
739
},
@@ -907,13 +906,16 @@ func replicationSpecToAtlas(replicationSpecs []*akov2.AdvancedReplicationSpec) *
907
906
specs = append (
908
907
specs ,
909
908
admin.ReplicationSpec20240805 {
910
- NumShards : pointer .NonZeroOrDefault (spec .NumShards , 1 ),
911
909
ZoneName : pointer .MakePtrOrNil (spec .ZoneName ),
912
910
RegionConfigs : & regionConfigs ,
913
911
},
914
912
)
915
913
}
916
914
915
+ for len (specs ) != replicationSpecs [0 ].NumShards {
916
+ specs = append (specs , specs [0 ])
917
+ }
918
+
917
919
return & specs
918
920
}
919
921
You can’t perform that action at this time.
0 commit comments