HomeSoftware Heritage

Do not reference unloaded snapshots in origin_visit_update

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Do not reference unloaded snapshots in origin_visit_update

When a repository fails to load, and the visit is set to partial status, some
loaders might have been able to generate a snapshot and an identifier, but
without actually loading it to the archive. This generates partial visits
referencing an inexistant snapshot.

Make sure that we only reference a snapshot in origin_visit_update when it's
actually been loaded (and flushed) to storage; do so by turning the
get_snapshot_id method into a loaded_snapshot attribute that gets populated
explicitly after flushing the snapshot to storage.

Details

Provenance
olasdAuthored on May 29 2020, 1:07 PM
olasdPushed on May 29 2020, 3:55 PM
Differential Revision
D3201: Do not reference unloaded snapshots in origin_visit_update
Build Status
Buildable 12563
Build 19083: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.