}
} else if (alterTbl.getOp() == AlterTableDesc.AlterTableTypes.ALTERPROTECTMODE) {
boolean protectModeEnable = alterTbl.isProtectModeEnable();
AlterTableDesc.ProtectModeType protectMode = alterTbl.getProtectModeType();
ProtectMode mode = null;
if (allPartitions != null) {
for (Partition tmpPart: allPartitions) {
mode = tmpPart.getProtectMode();
setAlterProtectMode(protectModeEnable, protectMode, mode);
tmpPart.setProtectMode(mode);