Skip to content

Commit 1c0271b

Browse files
committed
fix(cloudsync): remove old schema_hash check, it will be replaced with an improved check
1 parent b7215b9 commit 1c0271b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/cloudsync.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,14 +2116,6 @@ int cloudsync_payload_apply (sqlite3_context *context, const char *payload, int
21162116
header.schema_hash = ntohll(header.schema_hash);
21172117

21182118
cloudsync_context *data = (cloudsync_context *)sqlite3_user_data(context);
2119-
if (!data || header.schema_hash != data->schema_hash) {
2120-
sqlite3 *db = sqlite3_context_db_handle(context);
2121-
if (!dbutils_check_schema_hash(db, header.schema_hash)) {
2122-
dbutils_context_result_error(context, "Cannot apply the received payload because the schema hash is unknown %llu.", header.schema_hash);
2123-
sqlite3_result_error_code(context, SQLITE_MISMATCH);
2124-
return -1;
2125-
}
2126-
}
21272119

21282120
// sanity check header
21292121
if ((header.signature != CLOUDSYNC_PAYLOAD_SIGNATURE) || (header.ncols == 0)) {

0 commit comments

Comments
 (0)