HomeSoftware Heritage

Don't use a join in origin_visit_get_latest.

Description

Don't use a join in origin_visit_get_latest.

This changes the behavior of snapshot_get_latest, to raise an
error in case a visit references an unknown snapshot.
This should not happen in practice (unless we're replaying
from a journal).

snapshot_get_latest will be removed in the next monthes anyway.

Details

Provenance
vlorentzAuthored on Jun 14 2019, 1:55 PM
vlorentzPushed on Jun 19 2019, 2:34 PM
Differential Revision
D1586: Don't use a join in origin_visit_get_latest.
Parents
rDSTOdc7c1e0ad049: Add test for snapshot/release counters.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 6339
Build 8786: test-and-build