Commit 9cb1f75
committed
Clear stale errors before evalSha in evalWithShaCache
Add clearLastError() call before evalSha() to prevent stale errors from
previous commands causing incorrect error detection. Without this, a
successful evalSha returning nil could be mistaken for a NOSCRIPT error
if a previous command left an error in the buffer.
Add unit test verifying the call order.1 parent 21bf5a0 commit 9cb1f75
File tree
2 files changed
+30
-0
lines changed- src/redis/src
- tests/Redis
2 files changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
832 | 836 | | |
833 | 837 | | |
834 | 838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
835 | 861 | | |
836 | 862 | | |
837 | 863 | | |
| |||
0 commit comments