Fix the CI sentinel break issue (#30)
I run the CI in my branch, test cases for sentinel could pass https://github.com/hwware/placeholderkv/actions/runs/8429003027/job/23082549380
This commit is contained in:
parent
340ab6d62d
commit
1c9710fca1
@ -6612,9 +6612,9 @@ void dismissMemoryInChild(void) {
|
||||
void memtest(size_t megabytes, int passes);
|
||||
|
||||
/* Returns 1 if there is --sentinel among the arguments or if
|
||||
* executable name contains "redis-sentinel". */
|
||||
* executable name contains "placeholderkv-sentinel". */
|
||||
int checkForSentinelMode(int argc, char **argv, char *exec_name) {
|
||||
if (strstr(exec_name,"redis-sentinel") != NULL) return 1;
|
||||
if (strstr(exec_name,"placeholderkv-sentinel") != NULL) return 1;
|
||||
|
||||
for (int j = 1; j < argc; j++)
|
||||
if (!strcmp(argv[j],"--sentinel")) return 1;
|
||||
|
@ -50,7 +50,7 @@ proc exec_instance {type dirname cfgfile} {
|
||||
if {$type eq "redis"} {
|
||||
set prgname placeholderkv-server
|
||||
} elseif {$type eq "sentinel"} {
|
||||
set prgname redis-sentinel
|
||||
set prgname placeholderkv-sentinel
|
||||
} else {
|
||||
error "Unknown instance type."
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user