elect primary or secondary shard for unassigned shards
Merge pull request #694 from crate/l/differ-prim-sec-unassigned-shard

elect primary or secondary shard for unassigned shards