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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

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.