Page MenuHomeSoftware Heritage

Fix SWHIndexingLister.db_partition_indices(); ensure partition size is not zero
ClosedPublic

Authored by douardda on Jan 14 2019, 12:13 PM.

Details

Summary

when this lister is called for the first time, db_num_entries() may return
a null value, so the min() will also be zero, making the range() call crash.

Depends on D939

Diff Detail

Repository
rDLS Listers
Branch
tasks-forever
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 3463
Build 4470: tox-on-jenkinsJenkins
Build 4469: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 14 2019, 1:18 PM
This revision was automatically updated to reflect the committed changes.