Overview
SHA1 Hash: | 9ba6e4287ba0db011906809a2d71a5eb2fab7d29 |
---|---|
Date: | 2008-05-10 17:09:46 |
User: | drh |
Comment: | Add the --nosync option to temporarily disable autosync. Useful when off network. |
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/main.c from [54f94155e2] to [ee65ecd97a].
@@ -56,10 +56,11 @@ char *zLocalRoot; /* The directory holding the local database */ int minPrefix; /* Number of digits needed for a distinct UUID */ int fSqlTrace; /* True if -sqltrace flag is present */ int fSqlPrint; /* True if -sqlprint flag is present */ int fHttpTrace; /* Trace outbound HTTP requests */ + int fNoSync; /* Do not do an autosync even. --nosync */ char *zPath; /* Name of webpage being served */ char *zExtra; /* Extra path information past the webpage name */ char *zBaseURL; /* Full text of the URL being served */ char *zTop; /* Parent directory of zPath */ const char *zContentType; /* The content type of the input HTTP request */
Modified src/sync.c from [03df11b7c9] to [64b6ad3096].
@@ -41,10 +41,13 @@ ** autosync. This will be a pull if the argument is true or a push ** if the argument is false. */ void autosync(int flags){ const char *zUrl; + if( g.fNoSync ){ + return; + } if( db_get_boolean("autosync", 0)==0 ){ return; } zUrl = db_get("last-sync-url", 0); if( zUrl==0 ){
Modified src/url.c from [32de843e7c] to [1e3ccdf688].
@@ -148,10 +148,11 @@ ** --proxy URL|off ** */ void url_proxy_options(void){ zProxyOpt = find_option("proxy", 0, 1); + g.fNoSync = find_option("nosync", 0, 0)!=0; } /* ** If the "proxy" setting is defined, then change the URL to refer ** to the proxy server.