The ets table can contain a mixture of #shard and #ordered_shard records so we have to match both kinds of records here.