Skip to content

Commit 9ff9b16

Browse files
authored
Clarify master handshake process details
1 parent 8adbeed commit 9ff9b16

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stage_descriptions/replication-08-fj0.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ In this stage, we'll start implementing support for receiving a replication hand
44

55
Up until now, we've been implementing the handshake from the replica's perspective. Now we'll implement the same handshake on the master side.
66

7-
As a recap, the master receives the following for the handshake process:
7+
As a recap, the master receives the following from the replica during the handshake process:
88

9-
1. A `PING` from the replica
10-
2. `REPLCONF` twice from the replica
11-
3. `PSYNC` from the replica
9+
1. A `PING` command
10+
2. Two `REPLCONF` commands
11+
3. A `PSYNC` command
1212

13-
Your Redis server already supports the `PING` command, so there's no additional work to do for the first part.
13+
Your Redis server already supports the `PING` command, so there's no additional work to do for the first step.
1414

15-
In this stage, you'll add support for receiving the `REPLCONF` command from the replica as a master.
15+
In this stage, you'll add support for receiving the two `REPLCONF` commands as a master.
1616

17-
You'll receive `REPLCONF` twice from the replica. For the purposes of this challenge, you can safely ignore the arguments for both commands and simply respond with `+OK\r\n`. That's the string `OK` encoded as a [simple string](https://redis.io/docs/latest/develop/reference/protocol-spec/#simple-strings)
17+
For the purposes of this challenge, you can safely ignore the arguments for both commands and simply respond with `+OK\r\n`. That's the string `OK` encoded as a [simple string](https://redis.io/docs/latest/develop/reference/protocol-spec/#simple-strings)
1818

1919
### Tests
2020

0 commit comments

Comments
 (0)