dht: Make i_partitioner::tri_compare memory safe
dht: Make i_partitioner::tri_compare memory safe

This patch fixes a typo in i_partitioner::tri_compare() where we were
using std::max instead of std::min, thus avoiding accessing random
memory and getting random results.

Signed-off-by: Duarte Nunes <a60e8b7496f7715d71354fe4c06dd24017025bf1@scylladb.com>
Message-Id: <20161211165043.17816-1-a60e8b7496f7715d71354fe4c06dd24017025bf1@scylladb.com>

raphaelsc/scylla,scylladb/scylla,duarten/scylla,avikivity/scylla,avikivity/scylla,raphaelsc/scylla,avikivity/scylla,scylladb/scylla,duarten/scylla,duarten/scylla,scylladb/scylla,scylladb/scylla,raphaelsc/scylla