Overview
SHA1 Hash: | 1f8d2501b03cb07adcf7ef01f7ff156997769935 |
---|---|
Date: | 2008-07-23 20:57:55 |
User: | drh |
Comment: | Make sure new artifacts are entered into the unclustered table.
Ticket |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/content.c from [c6002c3945] to [c2d4ab941a].
@@ -490,11 +490,11 @@ /* ** Create a new phantom with the given UUID and return its artifact ID. */ int content_new(const char *zUuid){ int rid; - static Stmt s1, s2; + static Stmt s1, s2, s3; assert( g.repositoryOpen ); db_begin_transaction(); if( uuid_is_shunned(zUuid) ){ return 0; @@ -509,10 +509,15 @@ db_static_prepare(&s2, "INSERT INTO phantom VALUES(:rid)" ); db_bind_int(&s2, ":rid", rid); db_exec(&s2); + db_static_prepare(&s3, + "INSERT INTO unclustered VALUES(:rid)" + ); + db_bind_int(&s3, ":rid", rid); + db_exec(&s3); bag_insert(&contentCache.missing, rid); db_end_transaction(0); return rid; }