Change destination key's key-spec flag from RW to OW for SINTERSTORE command (#12917)
In #10122, we set the destination key's flag of SINTERSTORE to `RW`, however, this command doesn't actually read or modify the destination key, just overwrites it. Therefore, we change it to `OW` similarly to all other *STORE commands.
This commit is contained in:
parent
5b0c6a8255
commit
4730563e93
@ -7816,7 +7816,7 @@ struct COMMAND_ARG SINTERCARD_Args[] = {
|
|||||||
#ifndef SKIP_CMD_KEY_SPECS_TABLE
|
#ifndef SKIP_CMD_KEY_SPECS_TABLE
|
||||||
/* SINTERSTORE key specs */
|
/* SINTERSTORE key specs */
|
||||||
keySpec SINTERSTORE_Keyspecs[2] = {
|
keySpec SINTERSTORE_Keyspecs[2] = {
|
||||||
{NULL,CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{NULL,CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}
|
{NULL,CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{NULL,CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"key_specs": [
|
"key_specs": [
|
||||||
{
|
{
|
||||||
"flags": [
|
"flags": [
|
||||||
"RW",
|
"OW",
|
||||||
"UPDATE"
|
"UPDATE"
|
||||||
],
|
],
|
||||||
"begin_search": {
|
"begin_search": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user