Add slave id to replication commit error message.

What do you think about private static final inner class instead of Pair? Pairs make type declarations really long and their first()/other() methods are quite meaningless.