Skip to content

Commit

Permalink
Fix broken asynchronous check in flushdb and flushall
Browse files Browse the repository at this point in the history
Fixes #1070
  • Loading branch information
andymccurdy committed Nov 15, 2018
1 parent f396979 commit 40c4633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ def flushall(self, asynchronous=False):
executed asynchronously by the server.
"""
args = []
if not asynchronous:
if asynchronous:
args.append(Token.get_token('ASYNC'))
return self.execute_command('FLUSHALL', *args)

Expand All @@ -888,7 +888,7 @@ def flushdb(self, asynchronous=False):
executed asynchronously by the server.
"""
args = []
if not asynchronous:
if asynchronous:
args.append(Token.get_token('ASYNC'))
return self.execute_command('FLUSHDB', *args)

Expand Down

0 comments on commit 40c4633

Please sign in to comment.