Source:
<code>public static MetaDataMutationResult constructFromProto(MetaDataResponse proto) { MetaDataMutationResult result = new MetaDataMutationResult(); result.returnCode = MutationCode.values()[proto.getReturnCode().ordinal()]; result.mutationTime = proto.getMutationTime(); if (proto.hasTable()) { result.wasUpdated = true; result.table = PTableImpl.createFromProto(proto.getTable()); } if (proto.getFunctionCount() > 0) { result.wasUpdated = true; for(PFunctionProtos.PFunction function: proto.getFunctionList()) result.functions.add(PFunction.createFromProto(function)); } if (proto.getTablesToDeleteCount() > 0) { result.mutatedTableNames = <START> Lists.newArrayListWithExpectedSize(proto.getTablesToDeleteCount()); <END> for (ByteString tableName : proto.getTablesToDeleteList()) { result.mutatedTableNames.add(tableName.toByteArray()); } } result.columnName = ByteUtil.EMPTY_BYTE_ARRAY; if(proto.hasColumnName()){ result.columnName = proto.getColumnName().toByteArray(); } if(proto.hasFamilyName()){ result.familyName = proto.getFamilyName().toByteArray(); } if(proto.getSharedTablesToDeleteCount() > 0) { result.sharedTablesToDelete = Lists.newArrayListWithExpectedSize(proto.getSharedTablesToDeleteCount()); for (org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState sharedTable : proto.getSharedTablesToDeleteList()) { result.sharedTablesToDelete.add(new SharedTableState(sharedTable)); } } if (proto.hasSchema()) { result.schema = PSchema.createFromProto(proto.getSchema()); } if (proto.hasAutoPartitionNum()) { result.autoPartitionNum = proto.getAutoPartitionNum(); } if (proto.hasViewIndexId()) { result.viewIndexId = proto.getViewIndexId(); } result.viewIndexType = proto.hasViewIndexType() ? PDataType.fromTypeId(proto.getViewIndexType()) : MetaDataUtil.getLegacyViewIndexIdDataType(); return result; }</code><technical_language>Rename tablesToDelete in MetaDataResponse proto mutatedTables</technical_language>

Target:
public static MetaDataMutationResult constructFromProto(MetaDataResponse proto) { MetaDataMutationResult result = new MetaDataMutationResult(); result.returnCode = MutationCode.values()[proto.getReturnCode().ordinal()]; result.mutationTime = proto.getMutationTime(); if (proto.hasTable()) { result.wasUpdated = true; result.table = PTableImpl.createFromProto(proto.getTable()); } if (proto.getFunctionCount() > 0) { result.wasUpdated = true; for(PFunctionProtos.PFunction function: proto.getFunctionList()) result.functions.add(PFunction.createFromProto(function)); } if (proto.getMutatedTableNamesCount() > 0) { result.mutatedTableNames = Lists.newArrayListWithExpectedSize(proto.getMutatedTableNamesCount()); for (ByteString tableName : proto.getMutatedTableNamesList()) { result.mutatedTableNames.add(tableName.toByteArray()); } } result.columnName = ByteUtil.EMPTY_BYTE_ARRAY; if(proto.hasColumnName()){ result.columnName = proto.getColumnName().toByteArray(); } if(proto.hasFamilyName()){ result.familyName = proto.getFamilyName().toByteArray(); } if(proto.getSharedTablesToDeleteCount() > 0) { result.sharedTablesToDelete = Lists.newArrayListWithExpectedSize(proto.getSharedTablesToDeleteCount()); for (org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState sharedTable : proto.getSharedTablesToDeleteList()) { result.sharedTablesToDelete.add(new SharedTableState(sharedTable)); } } if (proto.hasSchema()) { result.schema = PSchema.createFromProto(proto.getSchema()); } if (proto.hasAutoPartitionNum()) { result.autoPartitionNum = proto.getAutoPartitionNum(); } if (proto.hasViewIndexId()) { result.viewIndexId = proto.getViewIndexId(); } result.viewIndexType = proto.hasViewIndexType() ? PDataType.fromTypeId(proto.getViewIndexType()) : MetaDataUtil.getLegacyViewIndexIdDataType(); return result; }