Page MenuHomeSoftware Heritage

db: check for existing snapshot when with_visit is True in origin_search()
ClosedPublic

Authored by douardda on Nov 18 2019, 12:28 PM.

Details

Summary

and not only for an existing origin visit.

This is needed in situations where the snapshot table is not in sync with the
origin_visit one; typically occurs on mirrors.

Also add tests for with_visit argument.

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert added a subscriber: anlambert.

Apart the sql upgrade file which should not be here, looks good to me.

sql/upgrades/144.sql
1 ↗(On Diff #7885)

Looks like that file was added by mistake

This revision is now accepted and ready to land.Nov 18 2019, 1:14 PM

Apart the sql upgrade file which should not be here, looks good to me.

damnit! sorry