"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/scripting.c" between
redis-6.2-rc3.tar.gz and redis-6.2.0.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.

scripting.c  (redis-6.2-rc3):scripting.c  (redis-6.2.0)
skipping to change at line 1671 skipping to change at line 1671
replicationScriptCacheAdd(c->argv[1]->ptr); replicationScriptCacheAdd(c->argv[1]->ptr);
serverAssertWithInfo(c,NULL,script != NULL); serverAssertWithInfo(c,NULL,script != NULL);
/* If the script did not produce any changes in the dataset we want /* If the script did not produce any changes in the dataset we want
* just to replicate it as SCRIPT LOAD, otherwise we risk running * just to replicate it as SCRIPT LOAD, otherwise we risk running
* an aborted script on slaves (that may then produce results there) * an aborted script on slaves (that may then produce results there)
* or just running a CPU costly read-only script on the slaves. */ * or just running a CPU costly read-only script on the slaves. */
if (server.dirty == initial_server_dirty) { if (server.dirty == initial_server_dirty) {
rewriteClientCommandVector(c,3, rewriteClientCommandVector(c,3,
resetRefCount(createStringObject("SCRIPT",6)), shared.script,
resetRefCount(createStringObject("LOAD",4)), shared.load,
script); script);
} else { } else {
rewriteClientCommandArgument(c,0, rewriteClientCommandArgument(c,0,shared.eval);
resetRefCount(createStringObject("EVAL",4)));
rewriteClientCommandArgument(c,1,script); rewriteClientCommandArgument(c,1,script);
} }
forceCommandPropagation(c,PROPAGATE_REPL|PROPAGATE_AOF); forceCommandPropagation(c,PROPAGATE_REPL|PROPAGATE_AOF);
} }
} }
server.in_eval = 0; server.in_eval = 0;
} }
void evalCommand(client *c) { void evalCommand(client *c) {
 End of changes. 2 change blocks. 
4 lines changed or deleted 3 lines changed or added

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