Skip to content

Commit b3fa653

Browse files
committed
Include empty buckets in sync diagnostics.
1 parent 7197949 commit b3fa653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/diagnostics-app/src/app/views/sync-diagnostics.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ SELECT
4343
stats.tables,
4444
stats.data_size,
4545
stats.metadata_size,
46-
stats.row_count,
46+
IFNULL(stats.row_count, 0) as row_count,
4747
local.download_size,
4848
local.total_operations,
4949
local.downloading
5050
FROM local_bucket_data local
51-
JOIN oplog_stats stats ON stats.name = local.id`;
51+
LEFT JOIN oplog_stats stats ON stats.name = local.id`;
5252

5353
const TABLES_QUERY = `
5454
SELECT row_type as name, count() as count, sum(length(data)) as size FROM ps_oplog GROUP BY row_type

0 commit comments

Comments
 (0)