Apply missing 7.2 changes
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
This commit is contained in:
parent
7e089f3d78
commit
f2b5800f9d
@ -6752,9 +6752,9 @@ void dismissMemoryInChild(void) {
|
|||||||
void memtest(size_t megabytes, int passes);
|
void memtest(size_t megabytes, int passes);
|
||||||
|
|
||||||
/* Returns 1 if there is --sentinel among the arguments or if
|
/* Returns 1 if there is --sentinel among the arguments or if
|
||||||
* executable name contains "redis-sentinel". */
|
* executable name contains "valkey-sentinel". */
|
||||||
int checkForSentinelMode(int argc, char **argv, char *exec_name) {
|
int checkForSentinelMode(int argc, char **argv, char *exec_name) {
|
||||||
if (strstr(exec_name,"redis-sentinel") != NULL) return 1;
|
if (strstr(exec_name,"valkey-sentinel") != NULL) return 1;
|
||||||
|
|
||||||
for (int j = 1; j < argc; j++)
|
for (int j = 1; j < argc; j++)
|
||||||
if (!strcmp(argv[j],"--sentinel")) return 1;
|
if (!strcmp(argv[j],"--sentinel")) return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user