"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/server.c" between
redis-6.2.4.tar.gz and redis-6.2.5.tar.gz

About: redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

server.c  (redis-6.2.4):server.c  (redis-6.2.5)
skipping to change at line 3695 skipping to change at line 3695
* preventCommandReplication(client *c); * preventCommandReplication(client *c);
* *
*/ */
void call(client *c, int flags) { void call(client *c, int flags) {
long long dirty; long long dirty;
monotime call_timer; monotime call_timer;
int client_old_flags = c->flags; int client_old_flags = c->flags;
struct redisCommand *real_cmd = c->cmd; struct redisCommand *real_cmd = c->cmd;
static long long prev_err_count; static long long prev_err_count;
server.fixed_time_expire++;
/* Initialization: clear the flags that must be set by the command on /* Initialization: clear the flags that must be set by the command on
* demand, and initialize the array for additional commands propagation. */ * demand, and initialize the array for additional commands propagation. */
c->flags &= ~(CLIENT_FORCE_AOF|CLIENT_FORCE_REPL|CLIENT_PREVENT_PROP); c->flags &= ~(CLIENT_FORCE_AOF|CLIENT_FORCE_REPL|CLIENT_PREVENT_PROP);
redisOpArray prev_also_propagate = server.also_propagate; redisOpArray prev_also_propagate = server.also_propagate;
redisOpArrayInit(&server.also_propagate); redisOpArrayInit(&server.also_propagate);
/* Call the command. */ /* Call the command. */
dirty = server.dirty; dirty = server.dirty;
prev_err_count = server.stat_total_error_replies; prev_err_count = server.stat_total_error_replies;
updateCachedTime(0);
/* Update cache time, in case we have nested calls we want to
* update only on the first call*/
if (server.fixed_time_expire++ == 0) {
updateCachedTime(0);
}
elapsedStart(&call_timer); elapsedStart(&call_timer);
c->cmd->proc(c); c->cmd->proc(c);
const long duration = elapsedUs(call_timer); const long duration = elapsedUs(call_timer);
c->duration = duration; c->duration = duration;
dirty = server.dirty-dirty; dirty = server.dirty-dirty;
if (dirty < 0) dirty = 0; if (dirty < 0) dirty = 0;
/* Update failed command calls if required. /* Update failed command calls if required.
* We leverage a static variable (prev_err_count) to retain * We leverage a static variable (prev_err_count) to retain
* the counter across nested function calls and avoid logging * the counter across nested function calls and avoid logging
 End of changes. 2 change blocks. 
3 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)