fix(shell): pass collection in ec.shard.unmount --delete request (#10219)

This commit is contained in:
qzhello
2026-07-03 10:47:14 -07:00
committed by GitHub
parent 98e49d2d42
commit 2c980fb468
+5 -2
View File
@@ -24,6 +24,7 @@ const (
type ecShard struct {
ShardID uint32
Collection string
NodeAddress string
}
@@ -173,6 +174,7 @@ func (c *commandEcShardUnmount) liveShardsForVolume() []*ecShard {
for _, sid := range sinfo.Ids() {
shards = append(shards, &ecShard{
ShardID: uint32(sid),
Collection: eci.GetCollection(),
NodeAddress: nodeAddress,
})
}
@@ -264,8 +266,9 @@ func (c *commandEcShardUnmount) unmountShard(s *ecShard) error {
if c.delete {
c.write("Deleting shard %v for volume ID %d...\n", s, c.volumeID)
if _, err := vsc.VolumeEcShardsDelete(ctx, &volume_server_pb.VolumeEcShardsDeleteRequest{
VolumeId: c.volumeID,
ShardIds: []uint32{s.ShardID},
VolumeId: c.volumeID,
Collection: s.Collection,
ShardIds: []uint32{s.ShardID},
}); err != nil {
return err
}