Skip to content

Commit 2837a9a

Browse files
committed
tofix merge conflict
1 parent f021dc6 commit 2837a9a

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/cloudsync.c

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,17 +2031,14 @@ int cloudsync_payload_apply (sqlite3_context *context, const char *payload, int
20312031
stmt_reset(vm);
20322032
}
20332033

2034-
if (rc == SQLITE_DONE) rc = SQLITE_OK;
2035-
if (rc == SQLITE_OK) {
2036-
char buf[256];
2037-
if (xdata.dbversion != dbversion) {
2038-
snprintf(buf, sizeof(buf), "%lld", xdata.dbversion);
2039-
dbutils_settings_set_key_value(db, context, CLOUDSYNC_KEY_CHECK_DBVERSION, buf);
2040-
}
2041-
if (xdata.seq != seq) {
2042-
snprintf(buf, sizeof(buf), "%lld", xdata.seq);
2043-
dbutils_settings_set_key_value(db, context, CLOUDSYNC_KEY_CHECK_SEQ, buf);
2044-
}
2034+
char buf[256];
2035+
if (xdata.dbversion != dbversion) {
2036+
snprintf(buf, sizeof(buf), "%lld", xdata.dbversion);
2037+
dbutils_settings_set_key_value(db, context, CLOUDSYNC_KEY_CHECK_DBVERSION, buf);
2038+
}
2039+
if (xdata.seq != seq) {
2040+
snprintf(buf, sizeof(buf), "%lld", xdata.seq);
2041+
dbutils_settings_set_key_value(db, context, CLOUDSYNC_KEY_CHECK_SEQ, buf);
20452042
}
20462043

20472044
// cleanup vm
@@ -2051,7 +2048,6 @@ int cloudsync_payload_apply (sqlite3_context *context, const char *payload, int
20512048
if (clone) cloudsync_memory_free(clone);
20522049

20532050
if (rc != SQLITE_DONE) {
2054-
sqlite3_result_error(context, sqlite3_errmsg(db), -1);
20552051
sqlite3_result_error_code(context, SQLITE_MISUSE);
20562052
return -1;
20572053
}

0 commit comments

Comments
 (0)