Fix test failures due to assert
Former-commit-id: 9c901eb65f98008f0962c5edc33aadc15ec6f619
This commit is contained in:
parent
9ca83cc9fd
commit
871c86717c
@ -82,7 +82,6 @@ void discardTransaction(client *c) {
|
||||
/* Flag the transacation as DIRTY_EXEC so that EXEC will fail.
|
||||
* Should be called every time there is an error while queueing a command. */
|
||||
void flagTransaction(client *c) {
|
||||
serverAssert(GlobalLocksAcquired());
|
||||
if (c->flags & CLIENT_MULTI)
|
||||
c->flags |= CLIENT_DIRTY_EXEC;
|
||||
}
|
||||
|
@ -5134,7 +5134,7 @@ int main(int argc, char **argv) {
|
||||
if (background) daemonize();
|
||||
|
||||
initServer();
|
||||
initNetworking(/*cserver.cthreads >*/ 1 /* fReusePort */);
|
||||
initNetworking(cserver.cthreads > 1 /* fReusePort */);
|
||||
|
||||
if (background || cserver.pidfile) createPidFile();
|
||||
redisSetProcTitle(argv[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user