diff options
author | Madelyn Olson <34459052+madolson@users.noreply.github.com> | 2020-12-01 11:46:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 11:46:45 -0800 |
commit | 69b7113bb52360f330d184b5b270625d35902ad6 (patch) | |
tree | 9e5f00979ca2f9df183f399246b96042711b6842 /src | |
parent | 3ba2281f96098691d9d672ce8b484207379b09ee (diff) | |
download | redis-69b7113bb52360f330d184b5b270625d35902ad6.tar.gz |
Getset fix (#8118)
* Fixed SET GET executing on wrong type
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/t_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_string.c b/src/t_string.c index e8b37663d..3ecc473bd 100644 --- a/src/t_string.c +++ b/src/t_string.c @@ -90,7 +90,7 @@ void setGenericCommand(client *c, int flags, robj *key, robj *val, robj *expire, } if (flags & OBJ_SET_GET) { - getGenericCommand(c); + if (getGenericCommand(c) == C_ERR) return; } genericSetKey(c,c->db,key,val,flags & OBJ_SET_KEEPTTL,1); |