elasticsearch/elasticsearch — pull request #6666 by kimchy (2014-07-01 15:32:23+00:00)
Title: wait for mapping updates during local recovery

when the primary shard is recovering its translog, make sure to wait for new mapping introductions till the mappings have been updated on the master before finalizing the recovery itself
also, this change performs the mapping updates in a more optimized manner by batching the types to change into a single set and sending after the translog has been replayed