Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix a bug in the db_get_int() routine that was causing the default value to be ignored - resulting in very slow clones for systems without a configuration database. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
bf1a30c9c06e5b634bf0a9e66bcbff3d |
| User & Date: | drh 2008-01-31 21:31:17.000 |
Context
|
2008-01-31
| ||
| 21:54 | The client-side of a sync uses an adaptive approach to limit the number of "gimme" requests on each HTTP round-trip. This reduces traffic on a large clone. The number of "gimmes" on each round-trip is the larger of 100 or twice the number of files received on the previous cycle. check-in: 95fab8c60b user: drh tags: trunk | |
| 21:31 | Fix a bug in the db_get_int() routine that was causing the default value to be ignored - resulting in very slow clones for systems without a configuration database. check-in: bf1a30c9c0 user: drh tags: trunk | |
| 07:14 | Added high-verbosity (level 11) logging to trace the application of rcs patches. check-in: e5ae612c8d user: aku tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
927 928 929 930 931 932 933 |
if( g.configOpen ){
return db_exists("SELECT 1 FROM global_config WHERE name=%Q", zName);
}else{
return 0;
}
}
int db_get_int(const char *zName, int dflt){
| | | 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 |
if( g.configOpen ){
return db_exists("SELECT 1 FROM global_config WHERE name=%Q", zName);
}else{
return 0;
}
}
int db_get_int(const char *zName, int dflt){
int v = dflt;
int rc;
if( g.repositoryOpen ){
Stmt q;
db_prepare(&q, "SELECT value FROM config WHERE name=%Q", zName);
rc = db_step(&q);
if( rc==SQLITE_ROW ){
v = db_column_int(&q, 0);
|
| ︙ | ︙ |