summaryrefslogtreecommitdiff
path: root/src/tracking.c
diff options
context:
space:
mode:
authorGnanesh <gnaneshkunal@outlook.com>2021-02-21 12:39:54 +0530
committerGitHub <noreply@github.com>2021-02-21 09:09:54 +0200
commit0772098b1b8587266e3a459d9b1225e6e5d4ce58 (patch)
tree726f8b2826cf8001b8348553097cb9c00ee88440 /src/tracking.c
parent06966d2a0e6a2087e4f70265e0f03fa8e1d1b94b (diff)
downloadredis-0772098b1b8587266e3a459d9b1225e6e5d4ce58.tar.gz
EXPIRE, EXPIREAT, SETEX, GETEX: Return error when expire time overflows (#8287)
Respond with error if expire time overflows from positive to negative of vice versa. * `SETEX`, `SET EX`, `GETEX` etc would have already error on negative value, but now they would also error on overflows (i.e. when the input was positive but after the manipulation it becomes negative, which would have passed before) * `EXPIRE` and `EXPIREAT` was ok taking negative values (would implicitly delete the key), we keep that, but we do error if the user provided a value that changes sign when manipulated (except the case of changing sign when `basetime` is added) Signed-off-by: Gnanesh <gnaneshkunal@outlook.com> Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src/tracking.c')
0 files changed, 0 insertions, 0 deletions