Fossil

Check-in [6fdf91d793]
Login

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

Overview
Comment:Rebuild now sets user.mtime if it is NULL, per ML thread.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6fdf91d7936c5ed176316138d65c78c6fa38cd1c
User & Date: stephan 2014-04-29 18:02:08.857
Context
2014-04-29
21:29
Make MinGW(-w64) compile work with USE_SYSTEM_SQLITE = 1. Only works if you have a static libsqlite3.a in your compiler environment. ... (check-in: d00f2cfa80 user: jan.nijtmans tags: trunk)
18:02
Rebuild now sets user.mtime if it is NULL, per ML thread. ... (check-in: 6fdf91d793 user: stephan tags: trunk)
17:32
Added the test-rename-list webpage. ... (check-in: 09f82acd13 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/rebuild.c.
368
369
370
371
372
373
374



375
376
377
378
379
380
381
  db_multi_exec(
     "DELETE FROM unclustered"
     " WHERE rid IN (SELECT rid FROM shun JOIN blob USING(uuid))"
  );
  db_multi_exec(
    "DELETE FROM config WHERE name IN ('remote-code', 'remote-maxid')"
  );




  /* The following should be count(*) instead of max(rid). max(rid) is
  ** an adequate approximation, however, and is much faster for large
  ** repositories. */
  totalSize = db_int(0, "SELECT max(rid) FROM blob");
  incrSize = totalSize/100;
  totalSize += incrSize*2;







>
>
>







368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
  db_multi_exec(
     "DELETE FROM unclustered"
     " WHERE rid IN (SELECT rid FROM shun JOIN blob USING(uuid))"
  );
  db_multi_exec(
    "DELETE FROM config WHERE name IN ('remote-code', 'remote-maxid')"
  );
  db_multi_exec(
    "UPDATE user SET mtime=strftime('%%s','now') WHERE mtime IS NULL"
  );

  /* The following should be count(*) instead of max(rid). max(rid) is
  ** an adequate approximation, however, and is much faster for large
  ** repositories. */
  totalSize = db_int(0, "SELECT max(rid) FROM blob");
  incrSize = totalSize/100;
  totalSize += incrSize*2;