Skip to content

Commit

Permalink
Cleanup protocol config checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tnowacki committed Feb 11, 2025
1 parent c33d3af commit dea4263
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,20 +589,7 @@ impl<'a> ChildObjectStore<'a> {
),
);
}
if self.inner.protocol_config.loaded_child_object_format() {
// double check format did not change
if !self.inner.protocol_config.loaded_child_object_format_type() && child_ty != &ty
{
let msg = format!("Type changed for child {child} when setting the value back");
return Err(
PartialVMError::new(StatusCode::UNKNOWN_INVARIANT_VIOLATION_ERROR)
.with_message(msg),
);
}
value
} else {
GlobalValue::none()
}
value
} else {
GlobalValue::none()
};
Expand Down

0 comments on commit dea4263

Please sign in to comment.