Force WAL checkpoint in sequoia after key import sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Wed, 19 Jun 2019 15:41:04 +0200
branchsync
changeset 38568a23d954fd74
parent 3844 4f6876b03ec6
child 3857 825e175daca0
child 3860 9e41a9438fcc
child 3861 f599ed411c78
child 3863 e10b2a4785a5
Force WAL checkpoint in sequoia after key import
src/pgp_sequoia.c
sync/cond_act_sync.yml2
     1.1 --- a/src/pgp_sequoia.c	Thu Jun 13 19:08:36 2019 +0200
     1.2 +++ b/src/pgp_sequoia.c	Wed Jun 19 15:41:04 2019 +0200
     1.3 @@ -1968,6 +1968,17 @@
     1.4          break;
     1.5      }
     1.6  
     1.7 +    int int_result = sqlite3_exec(
     1.8 +        session->key_db,
     1.9 +        "PRAGMA wal_checkpoint(FULL);\n"
    1.10 +        ,
    1.11 +        NULL,
    1.12 +        NULL,
    1.13 +        NULL
    1.14 +    );
    1.15 +    if (int_result != SQLITE_OK)
    1.16 +        status = PEP_UNKNOWN_DB_ERROR;
    1.17 +
    1.18   out:
    1.19      pgp_tpk_parser_free(parser);
    1.20  
     2.1 --- a/sync/cond_act_sync.yml2	Thu Jun 13 19:08:36 2019 +0200
     2.2 +++ b/sync/cond_act_sync.yml2	Wed Jun 19 15:41:04 2019 +0200
     2.3 @@ -535,4 +535,3 @@
     2.4  ||
     2.5  
     2.6  action disable;
     2.7 -