Skip to content

Commit 783ffca

Browse files
author
virco
committed
temp fix
1 parent d2e7cf3 commit 783ffca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ppagecache.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3022,6 +3022,20 @@ static void psync_pagecache_upload_to_cache(){
30223022
static void psync_pagecache_add_task(uint32_t type, uint64_t taskid, uint64_t hash, uint64_t oldhash){
30233023
psync_sql_res *res;
30243024
int run;
3025+
// TODO: remove this check
3026+
if (type==PAGE_TASK_TYPE_MODIFY){
3027+
psync_sql_start_transaction();
3028+
res=psync_sql_prep_statement("DELETE FROM fstaskdepend WHERE dependfstaskid=?");
3029+
psync_sql_bind_uint(res, 1, taskid);
3030+
psync_sql_run_free(res);
3031+
if (psync_sql_affected_rows())
3032+
psync_fsupload_wake();
3033+
res=psync_sql_prep_statement("DELETE FROM fstask WHERE id=?");
3034+
psync_sql_bind_uint(res, 1, taskid);
3035+
psync_sql_run_free(res);
3036+
psync_sql_commit_transaction();
3037+
return;
3038+
}
30253039
run=0;
30263040
res=psync_sql_prep_statement("INSERT INTO pagecachetask (type, taskid, hash, oldhash) VALUES (?, ?, ?, ?)");
30273041
psync_sql_bind_uint(res, 1, type);

0 commit comments

Comments
 (0)