Files
aptly/system/t12_api
André Roth 80e4e9bdac publish: fix race conditions
* remove useless resource lock
  Resource locks need to be before the background task. creating same publish endpoint at the same time is unlikely...
* load data inside background tasks
  This fixes a flaw in async apis, which loaded the published repo from the DB and mutated it outside the task closure, before the task lock was acquired.
  Perform collection.LoadComplete inside maybeRunTaskInBackground and have tasks use a fresh copy of taskCollectionFactory, taskCollection
* lock source repos/snapshots for publish operations
  Concurrent tasks were not properly locking their resources, leading to inconsistent published indexes:
  SourceLocalRepo: iterate published.Sources (component -> source UUID), look up each local repo via localRepoCollection.ByUUID and append string(repo.Key()) to resources
  SourceSnapshot: iterate b.Snapshots,look up each snapshot via snapshotCollection.ByName and append string(snapshot.ResourceKey()) to resources.
* lock pool on non MultiDist publish
* revert mutex on LinkFromPool
* use uuids, since names can be renamed
2026-06-11 12:25:49 +02:00
..
2022-01-27 09:30:14 +01:00
2024-10-01 01:32:56 +02:00
2022-01-27 15:06:33 +01:00
2026-04-12 22:26:58 +02:00
2024-07-24 21:19:47 +02:00
2026-06-11 12:25:49 +02:00
2024-10-22 11:13:31 +02:00
2024-10-02 19:12:05 +02:00
2022-01-27 15:06:33 +01:00
2024-07-24 21:19:47 +02:00
2024-07-24 21:19:47 +02:00
2017-03-25 00:18:45 +03:00