]> git.saurik.com Git - redis.git/commit
Dead code removed from replication.c.
authorantirez <antirez@gmail.com>
Thu, 24 May 2012 09:35:21 +0000 (11:35 +0200)
committerantirez <antirez@gmail.com>
Thu, 24 May 2012 13:22:31 +0000 (15:22 +0200)
commit8152d0c046d319d849ca905822b2da2760a2f136
tree854e8d903516609e2043a2f2bf5a28fb4fd1b687
parent9b6035bc7f17571ebde075e7ecd28796803272dd
Dead code removed from replication.c.

The user @jokea noticed that the following line of code into
replication.c made little sense:

    addReplySds(slave,sdsempty());

Investigating a bit I found that this was introduced by commit 6208b3a7
three years ago in the early stages of Redis. The code apparently is not
useful at all, so I'm removing it.

This change will not be backported into 2.4 so that in the rare case
this should introduce a bug, we'll have a chance to detect it into the
development branch. However following the code path it seems like the
code is not useful at all, so the risk is truly small.
src/replication.c