Unverified Commit 4730563e authored by debing.sun's avatar debing.sun Committed by GitHub
Browse files

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.
parent 5b0c6a82
...@@ -7816,7 +7816,7 @@ struct COMMAND_ARG SINTERCARD_Args[] = { ...@@ -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 @@ ...@@ -16,7 +16,7 @@
"key_specs": [ "key_specs": [
{ {
"flags": [ "flags": [
"RW", "OW",
"UPDATE" "UPDATE"
], ],
"begin_search": { "begin_search": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment