feat: expose FileUploadSession low-level functions (#855)

This commit is contained in:
Joseph Godlewski
2026-06-01 16:43:33 -07:00
committed by GitHub
parent 40f9530753
commit 5a75a71727

View File

@@ -611,7 +611,8 @@ impl FileUploadSession {
/// Register a pre-composed file reconstruction plan (MDBFileInfo) with this session.
/// Used for append-aware writes where the caller builds the reconstruction plan
/// from existing segments + newly uploaded segments.
pub(crate) async fn register_composed_file(self: &Arc<Self>, file_info: MDBFileInfo) -> Result<()> {
pub async fn register_composed_file(self: &Arc<Self>, file_info: MDBFileInfo) -> Result<()> {
self.check_not_finalized()?;
self.shard_interface.add_file_reconstruction_info(file_info).await
}
@@ -622,6 +623,10 @@ impl FileUploadSession {
Ok(())
}
pub fn client(&self) -> Arc<dyn Client + Send + Sync> {
Arc::clone(&self.client)
}
pub fn progress(&self) -> &Arc<GroupProgress> {
&self.progress
}