insufficient size for cached client flags in call() (#9783)

The client flags is a 64 bit integer, but the temporary cached value on the stack of call() is 32 bit.
luckily this doesn't lead to any bugs since the only flags used against this variables are below 32 bit.
This commit is contained in:
guoxiang1996 2021-11-16 14:21:23 +08:00 committed by GitHub
parent e968d9ac58
commit aba70df48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4897,7 +4897,7 @@ void slowlogPushCurrentCommand(client *c, struct redisCommand *cmd, ustime_t dur
void call(client *c, int flags) {
long long dirty;
monotime call_timer;
int client_old_flags = c->flags;
uint64_t client_old_flags = c->flags;
struct redisCommand *real_cmd = c->cmd;
static long long prev_err_count;