Home
last modified time | relevance | path

Searched refs:CONFIG_RUN_ID_SIZE (Results 1 – 4 of 4) sorted by relevance

/redis-3.2.3/src/
H A Dreplication.c994 static char eofmark[CONFIG_RUN_ID_SIZE]; in readSyncBulkPayload()
995 static char lastbytes[CONFIG_RUN_ID_SIZE]; in readSyncBulkPayload()
1036 memcpy(eofmark,buf+5,CONFIG_RUN_ID_SIZE); in readSyncBulkPayload()
1037 memset(lastbytes,0,CONFIG_RUN_ID_SIZE); in readSyncBulkPayload()
1076 if (nread >= CONFIG_RUN_ID_SIZE) { in readSyncBulkPayload()
1077 memcpy(lastbytes,buf+nread-CONFIG_RUN_ID_SIZE,CONFIG_RUN_ID_SIZE); in readSyncBulkPayload()
1079 int rem = CONFIG_RUN_ID_SIZE-nread; in readSyncBulkPayload()
1096 server.repl_transfer_read - CONFIG_RUN_ID_SIZE) == -1) in readSyncBulkPayload()
1337 if (!runid || !offset || (offset-runid-1) != CONFIG_RUN_ID_SIZE) { in slaveTryPartialResynchronization()
1344 memset(server.repl_master_runid,0,CONFIG_RUN_ID_SIZE+1); in slaveTryPartialResynchronization()
[all …]
H A Dserver.h102 #define CONFIG_RUN_ID_SIZE 40 macro
600 char replrunid[CONFIG_RUN_ID_SIZE+1]; /* Master run id if is a master. */
722 char runid[CONFIG_RUN_ID_SIZE+1]; /* ID always different at every exec. */
900 char repl_master_runid[CONFIG_RUN_ID_SIZE+1]; /* Master run id for PSYNC.*/
H A Dsentinel.c229 char myid[CONFIG_RUN_ID_SIZE+1]; /* This sentinel ID. */
493 for (j = 0; j < CONFIG_RUN_ID_SIZE; j++) in sentinelIsRunning()
496 if (j == CONFIG_RUN_ID_SIZE) { in sentinelIsRunning()
498 getRandomHexChars(sentinel.myid,CONFIG_RUN_ID_SIZE); in sentinelIsRunning()
1635 if (strlen(argv[1]) != CONFIG_RUN_ID_SIZE) in sentinelHandleConfiguration()
1637 memcpy(sentinel.myid,argv[1],CONFIG_RUN_ID_SIZE); in sentinelHandleConfiguration()
H A Dserver.c1452 getRandomHexChars(server.runid,CONFIG_RUN_ID_SIZE); in initServerConfig()
1456 server.runid[CONFIG_RUN_ID_SIZE] = '\0'; in initServerConfig()