[KUDU-3412][Tools][Bugfix] Fix core dump of tablet copier

The function: CopyTablets() of class TabletCopier creates
a thread to obtain copy process periodically. Every 10s,
it will log the tablet id and tablet status. But fake_replica
does not have a tablet id, here will core dump.

Therefore, this patch uses map<string, TabletReplica*>
copying_replicas_by_tablet_id to store the tablet id and
fake_replica.

Change-Id: Iaa2107d3c04c9f3e850d33dbf420ebb62edc98d8
Reviewed-on: http://gerrit.cloudera.org:8080/19163
Reviewed-by: Yingchun Lai <acelyc1112009@gmail.com>
Tested-by: Yingchun Lai <acelyc1112009@gmail.com>
1 file changed