numinnex commented on code in PR #3020:
URL: https://github.com/apache/iggy/pull/3020#discussion_r3001198854


##########
core/partitions/src/iggy_partitions.rs:
##########
@@ -67,6 +73,12 @@ pub struct IggyPartitions<C> {
     consensus: Option<C>,
 }
 
+fn freeze_client_reply(message: Message<GenericHeader>) -> ClientBuffers {
+    let owned = unsafe { message.into_inner().try_merge() }
+        .expect("client reply expects a mergeable message buffer");
+    vec![owned.into()]
+}
+
 impl<C> IggyPartitions<C> {
     #[must_use]
     pub fn new(shard_id: ShardId, config: PartitionsConfig) -> Self {

Review Comment:
   I've left a `TODO` comment to tackle that with another issue, essentially we 
would like the `Partition` to be re-entrant, thus never requiring `&mut` access 
to it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to