Project

Profile

Help

Task #1231

Updated by jortel@redhat.com about 9 years ago

Catalog model object: 

 Unique Index (path, importer_id) plugin_id) 

 Catalog: 
 * path             A unit storage path. 
 * unit_id          The content unit ID. 
 * revision         The revision is used to group entries into snapshots. 
 * importer_id      plugin_id        An importer ID. ID 
 * url              The download URL 
 * checksum         The checksum used to verify downloaded file.    Is: <algorithm>:<digest> 
 * data             Misc data (dict) used by the importer. 

 The streamer will use only the latest revision of matching entries.   
 Importers steps: 

 1. Create new entries using an incremented revision. 
 2. Remove all entries with older revisions. 

 There may be another way of doing this but the goal is to ensure the streamer can use the catalog concurrently with it being updated without locking.    And, that the catalog can be self-cleaning. 

Back