Fossil

Check-in [726a13d2]
Login

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

Overview
Comment:Fix a memory leak in the check-out logic that prevents opening of massive repositories. Ticket [708eab9d48]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:726a13d29689f4b92749072c2a47771767960373
User & Date: drh 2010-01-20 15:43:44
Original Comment: Fix a memory leak in the check-out logic that prevents opening of massive repositories.
References
2010-01-20
15:51 Tested ticket [708eab9d]: Message "killed" opening large repository plus 3 other changes artifact: e2196b97 user: drh
Context
2010-01-20
15:48
Fix the object ID decoding on the /info page. Ticket [a5403e6eee]. check-in: 5eea3db6 user: drh tags: trunk
15:43
Fix a memory leak in the check-out logic that prevents opening of massive repositories. Ticket [708eab9d48] check-in: 726a13d2 user: drh tags: trunk
2010-01-19
18:28
Add the "pullonly" option to the "autosync" setting. check-in: ea27129c user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/vfile.c.

233
234
235
236
237
238
239

240
241
242
243
244
245
246

    id = db_column_int(&q, 0);
    zName = db_column_text(&q, 1);
    rid = db_column_int(&q, 2);
    content_get(rid, &content);
    if( verbose ) printf("%s\n", &zName[nRepos]);
    blob_write_to_file(&content, zName);

    db_multi_exec("UPDATE vfile SET mtime=%lld WHERE id=%d",
                  file_mtime(zName), id);
  }
  db_finalize(&q);
}









>







233
234
235
236
237
238
239
240
241
242
243
244
245
246
247

    id = db_column_int(&q, 0);
    zName = db_column_text(&q, 1);
    rid = db_column_int(&q, 2);
    content_get(rid, &content);
    if( verbose ) printf("%s\n", &zName[nRepos]);
    blob_write_to_file(&content, zName);
    blob_reset(&content);
    db_multi_exec("UPDATE vfile SET mtime=%lld WHERE id=%d",
                  file_mtime(zName), id);
  }
  db_finalize(&q);
}