diff options
author | Axlgrep <axlgrep@gmail.com> | 2021-11-16 23:03:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 17:03:24 +0200 |
commit | 5f8ee3815c09595e8b6cd166fe8a3da18ff1d0fd (patch) | |
tree | 8c5db85240a100505b7f06a202bcac2cf4e7c8f2 /.github | |
parent | 992a610fe819c0bea381c5c717a218019362b40e (diff) | |
download | redis-5f8ee3815c09595e8b6cd166fe8a3da18ff1d0fd.tar.gz |
optimze the judgment logic of use_pattern in scanGenericCommand() (#9789)
in `scan 0 match ""` case, pat is empty sds(patlen is 0), I don't think should access the
first character directly in this case(even though the first character is ' \0 '), for the
code readability, I switch the two positions of judgment logic.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions