Skip to content

Commit 5bffbb8

Browse files
committed
limited reach exit code 60
1 parent b897aee commit 5bffbb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The default will scan all keys:
3939
```shell
4040
redis-scan
4141
```
42-
Actually, there is a `eachLimit` (default 1000) so it will only scan 1000 keys (in batches, with sleeps inbetween), print a message "Limit reached" and custom exit code with `3.`
42+
Actually, there is a `eachLimit` (default 1000) so it will only scan 1000 keys (in batches, with sleeps inbetween), print a message "Limit reached" and custom exit code of `60.`
4343

4444
If the first parameter is a number prefixed with `@` then it is taken as the database number:
4545
```shell

bin/redis-scan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ RedisScan_scan() {
524524
then
525525
rherror "Limit reached: eachLimit $eachLimit"
526526
RedisScan_clean
527-
return 3
527+
return 60
528528
fi
529529
if [ ! -f $tmp.run ]
530530
then

0 commit comments

Comments
 (0)