Fossil

Check-in [82aded4c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix private content push bug mentioned on Forum. It's possible that this content has already been recorded as private so ignore unique constraint error.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 82aded4cff95dd74078209baabbb68bde9d4a89488e66f41034e3d8c4102cc96
User & Date: andybradford 2019-04-11 14:12:17
Context
2019-04-17
14:50
Applied a fix to fossil-autocomplete.bash posted on the forum, said to avoid adding a space to the end of an autocompleted path: https://fossil-scm.org/forum/forumpost/7ba4a4c495 check-in: 99ad7fc3 user: wyoung tags: trunk
2019-04-11
14:12
Fix private content push bug mentioned on Forum. It's possible that this content has already been recorded as private so ignore unique constraint error. check-in: 82aded4c user: andybradford tags: trunk
01:17
Update the built-in SQLite to the first 3.28.0 beta. check-in: cbc21e52 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/content.c.

   596    596       db_exec(&s1);
   597    597       rid = db_last_insert_rowid();
   598    598       if( !pBlob ){
   599    599         db_multi_exec("INSERT OR IGNORE INTO phantom VALUES(%d)", rid);
   600    600       }
   601    601     }
   602    602     if( g.markPrivate || isPrivate ){
   603         -    db_multi_exec("INSERT INTO private VALUES(%d)", rid);
          603  +    db_multi_exec("INSERT OR IGNORE INTO private VALUES(%d)", rid);
   604    604       markAsUnclustered = 0;
   605    605     }
   606    606     if( nBlob==0 ) blob_reset(&cmpr);
   607    607   
   608    608     /* If the srcId is specified, then the data we just added is
   609    609     ** really a delta.  Record this fact in the delta table.
   610    610     */