Skip to content

Commit 2b35be4

Browse files
Merge pull request #73 from powersync-ja/fix/write-checkpoints
fix: custom write checkpoint logic
2 parents 465de21 + afb8837 commit 2b35be4

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 1.0.0-BETA6
4+
5+
* Fix Custom Write Checkpoint application logic
36

47
## 1.0.0-BETA5
58

core/src/commonMain/kotlin/com/powersync/db/PowerSyncDatabaseImpl.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ internal class PowerSyncDatabaseImpl(
252252
writeTransaction { tx ->
253253
internalDb.queries.deleteEntriesWithIdLessThan(lastTransactionId.toLong())
254254

255-
if (writeCheckpoint != null && bucketStorage.hasCrud()) {
255+
if (writeCheckpoint != null && !bucketStorage.hasCrud()) {
256256
tx.execute(
257257
"UPDATE ps_buckets SET target_op = CAST(? AS INTEGER) WHERE name='\$local'",
258258
listOf(writeCheckpoint),

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ development=true
1717
RELEASE_SIGNING_ENABLED=true
1818
# Library config
1919
GROUP=com.powersync
20-
LIBRARY_VERSION=1.0.0-BETA5
20+
LIBRARY_VERSION=1.0.0-BETA6
2121
GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git
2222
# POM
2323
POM_URL=https://github.com/powersync-ja/powersync-kotlin/

0 commit comments

Comments
 (0)