mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
users.storage_used only ever grew: uploads incremented it but no deletion path decremented it, so users hit the account size limit even when their real media usage was well below it. - Decrement storage_used in MediaDeletePipeline when media is removed - Add UserStorageService::increaseStorageUsed / decrementStorageUsed as the fast, symmetric hot-path counter updates (floor-based, clamped at zero) - Refactor the 6 upload call sites to use increaseStorageUsed instead of duplicated inline writes (also fixes ceil/floor drift vs the reconciler) - Add (user_id, size) covering index so per-user SUM(size) is not a full table scan (INPLACE/LOCK=NONE, skipped on sqlite) - Add user:storage:recalculate command to repair affected accounts, with a daily --stale=168 scheduled reconciler to correct any drift - Add regression tests for the pipeline and UserStorageService |
2 weeks ago | |
|---|---|---|
| .. | ||
| AccountPostCountStatUpdate.php | 4 weeks ago | |
| CleanupExpiredAppRegistrations.php | 4 weeks ago | |
| GarbageCollectorDatabaseSession.php | 4 weeks ago | |
| GarbageCollectorFailedJob.php | 4 weeks ago | |
| GarbageCollectorImportUpload.php | 4 weeks ago | |
| GarbageCollectorMedia.php | 4 weeks ago | |
| GarbageCollectorPasswordReset.php | 4 weeks ago | |
| GarbageCollectorStory.php | 4 weeks ago | |
| HashtagCachedCountUpdate.php | 4 weeks ago | |
| ImportRemoveDeletedAccounts.php | 4 weeks ago | |
| ImportUploadCleanStorage.php | 4 weeks ago | |
| ImportUploadMediaToCloudStorage.php | 4 weeks ago | |
| InstanceUpdateTotalLocalPosts.php | 4 weeks ago | |
| NotificationEpochUpdate.php | 4 weeks ago | |
| PushGatewayRefresh.php | 4 weeks ago | |
| RecalculateUserStorage.php | 2 weeks ago | |
| SoftwareUpdateRefresh.php | 4 weeks ago | |
| StorageMaintenance.php | 3 weeks ago | |
| TransformImports.php | 3 weeks ago | |
| WeeklyInstanceScan.php | 4 weeks ago | |