If shards are in use, we must fill the shard number on incoming updates,
otherwise some entries are assigned shard number zero, and may be broadcast
everywhere once updated, instead of being sent only to the peers having the
same shard number.
This fixes commit
36d156564 ("MINOR: peers: Support for peer shards"). No
backport is needed.
*msg_cur += keylen;
}
+ newts->shard = stktable_get_key_shard(st->table, newts->key.key, keylen);
+
/* lookup for existing entry */
ts = stktable_set_entry(st->table, newts);
if (ts != newts) {