- 22 2月, 2013 3 次提交
- 21 2月, 2013 11 次提交
- 20 2月, 2013 2 次提交
- 16 2月, 2013 1 次提交
-
-
由 antirez 提交于
-
- 15 2月, 2013 7 次提交
- 14 2月, 2013 8 次提交
- 13 2月, 2013 1 次提交
-
-
由 antirez 提交于
-
- 12 2月, 2013 7 次提交
-
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
When we are preparing an handshake with the slave we can't touch the connection buffer as it'll be used to accumulate differences between the sent RDB file and what arrives next from clients. So in short we can't use addReply() family functions. However we just use write(2) because we know that the socket buffer is empty, since a prerequisite for SYNC to work is that the static buffer and the output list are empty, and in general it is not expected that a client SYNCs after doing some heavy I/O with the master. However a short write connection is explicitly handled to avoid fragility (we simply close the connection and the slave will retry).
-