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.
pixelfed/app/Console/Commands/Internal
Your Name 6496904293 Fix account storage limit not freeing on media deletion (#7169)
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 refactor: organize Artisan commands into subfolders 4 weeks ago
CleanupExpiredAppRegistrations.php refactor: organize Artisan commands into subfolders 4 weeks ago
GarbageCollectorDatabaseSession.php refactor: use GarbageCollector prefix for GC console command classes 4 weeks ago
GarbageCollectorFailedJob.php refactor: use GarbageCollector prefix for GC console command classes 4 weeks ago
GarbageCollectorImportUpload.php refactor: use GarbageCollector prefix for GC console command classes 4 weeks ago
GarbageCollectorMedia.php refactor: use GarbageCollector prefix for GC console command classes 4 weeks ago
GarbageCollectorPasswordReset.php refactor: use GarbageCollector prefix for GC console command classes 4 weeks ago
GarbageCollectorStory.php refactor: use GarbageCollector prefix for GC console command classes 4 weeks ago
HashtagCachedCountUpdate.php refactor: organize Artisan commands into subfolders 4 weeks ago
ImportRemoveDeletedAccounts.php refactor: organize Artisan commands into subfolders 4 weeks ago
ImportUploadCleanStorage.php refactor: organize Artisan commands into subfolders 4 weeks ago
ImportUploadMediaToCloudStorage.php refactor: organize Artisan commands into subfolders 4 weeks ago
InstanceUpdateTotalLocalPosts.php refactor: organize Artisan commands into subfolders 4 weeks ago
NotificationEpochUpdate.php refactor: organize Artisan commands into subfolders 4 weeks ago
PushGatewayRefresh.php refactor: organize Artisan commands into subfolders 4 weeks ago
RecalculateUserStorage.php Fix account storage limit not freeing on media deletion (#7169) 2 weeks ago
SoftwareUpdateRefresh.php refactor: organize Artisan commands into subfolders 4 weeks ago
StorageMaintenance.php refactor: simplify storage:maintenance flags and make it quiet by default 3 weeks ago
TransformImports.php feat: storage:maintenance command + in-flow cleanup of emptied dirs 3 weeks ago
WeeklyInstanceScan.php refactor: organize Artisan commands into subfolders 4 weeks ago