chore(yocto): should auto gc after applying updates (#12199)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Improved document update handling to optimize storage automatically
when garbage collection is enabled.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
This commit is contained in:
Yii
2025-12-29 21:48:23 +08:00
committed by GitHub
parent e12fe9c12b
commit 1b9d065778

View File

@@ -296,6 +296,10 @@ impl Doc {
}
}
if self.opts.gc {
store.optimize()?;
}
Ok(())
}