* check for test fail in CI

* use 0 if there are no fileinfo table entries

* fix usage
Этот коммит содержится в:
Nathaniel Allred
2022-06-15 02:13:01 -05:00
коммит произвёл GitHub
родитель 1876d69210
Коммит 90c737a57a
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@@ -739,7 +739,7 @@ func (fs SqlFileInfoStore) GetFilesBatchForIndexing(startTime int64, startFileID
func (fs SqlFileInfoStore) GetStorageUsage(allowFromCache, includeDeleted bool) (int64, error) {
query := fs.getQueryBuilder().
Select("SUM(Size)").
Select("COALESCE(SUM(Size), 0)").
From("FileInfo")
if !includeDeleted {