kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

Support slot batch operation for CLUSTERX SETSLOT

Open ChrisZMF opened this issue 3 years ago • 1 comments

Support for #510

It is an enhancement to the original implement of command CLUSTERX SETSLOT #463

Command formart

CLUSTERX SETSLOT "$slot_batch" NODE $node_id $new_version

assign batch slots to the node if new version is current version+1. It is compatible with the original command syntax.

Parameter Changes

$slot_batch: batch slots which we want to assign. It can be given by single slotid or slot batch. Slot batch can be given by continuous slot range or discrete slot list with spaces as separators, e.g. "3 5 9 10-20".

Example CLUSTERX SETSLOT 1 NODE $nodeid1 1 CLUSTERX SETSLOT "3 5 9 20-30" NODE $nodeid1 2

ChrisZMF avatar Mar 24 '22 06:03 ChrisZMF

@ChrisZMF you may separate the fix typo part into a dedicated patch and resolve the conflict so that we can continue reviewing this patch :)

tisonkun avatar Aug 16 '22 14:08 tisonkun

Closed as inactive. You may resubmit the patch base on the latest unstable branch.

tisonkun avatar Oct 04 '22 02:10 tisonkun