Skip to content

Commit

Permalink
Fix issue with deleting $local bucket on reconnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Jan 6, 2025
1 parent e88da1a commit 4ea8aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/powersync_core/lib/src/bucket_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BucketStorage {

Future<List<BucketState>> getBucketStates() async {
final rows = await select(
'SELECT name as bucket, cast(last_op as TEXT) as op_id FROM ps_buckets WHERE pending_delete = 0');
'SELECT name as bucket, cast(last_op as TEXT) as op_id FROM ps_buckets WHERE pending_delete = 0 AND name != \'\$local\'');
return [
for (var row in rows)
BucketState(bucket: row['bucket'], opId: row['op_id'])
Expand Down

0 comments on commit 4ea8aca

Please sign in to comment.