HomeSoftware Heritage

buffer: add support for snapshots

Description

buffer: add support for snapshots

This is mostly a consistency addition, considering that most (if not
all) loaders will only add a single snapshot.

The common pattern of loading objects in topological order (content >
directory > revision > release > snapshot), then flushing the storage,
is now fully consistent; Without this addition, the snapshot addition
would reach the backend storage before all other objects are added,
leading to potential inconsistencies if the flush of other object types
fails.

Details

Provenance
olasdAuthored on Feb 4 2021, 9:56 AM
olasdPushed on Feb 4 2021, 7:32 PM
Differential Revision
D5015: buffer: add support for snapshots
Parents
rDSTO18967ed4a5f2: buffer: add type annotations for tests
Branches
Unknown
Tags
Unknown
Build Status
Buildable 19023
Build 29480: test-and-buildJenkins console · Jenkins