Fossil SCM
Suppress "database locked" warnings on the "PRAGMA optimize" that occurs as the process is shutting down.
Commit
c7d85ffb2ac857b25ce95e640b44ecae73c5df05c2a72cc7cb87078e2ced4611
Parent
81d7d3f43ebd4e7…
9 files changed
+1
-1
+1
-1
+1
-1
+1
-1
+2
+2
-2
+2
-2
+1
-1
+1
-1
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | |
| 6 | 6 | ### Now install some additional parts we will need for the build |
| 7 | 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | -ENV FOSSIL_INSTALL_VERSION release | |
| 10 | +ENV FOSSIL_INSTALL_VERSION branch-2.2 | |
| 11 | 11 | |
| 12 | 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 | 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION branch-2.2 |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | |
| 6 | 6 | ### Now install some additional parts we will need for the build |
| 7 | 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | -ENV FOSSIL_INSTALL_VERSION release | |
| 10 | +ENV FOSSIL_INSTALL_VERSION branch-2.2 | |
| 11 | 11 | |
| 12 | 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 | 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION branch-2.2 |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
M
VERSION
+1
-1
| --- VERSION | ||
| +++ VERSION | ||
| @@ -1,1 +1,1 @@ | ||
| 1 | -2.2 | |
| 1 | +2.2.1 | |
| 2 | 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.2 |
| 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.2.1 |
| 2 |
M
VERSION
+1
-1
| --- VERSION | ||
| +++ VERSION | ||
| @@ -1,1 +1,1 @@ | ||
| 1 | -2.2 | |
| 1 | +2.2.1 | |
| 2 | 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.2 |
| 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.2.1 |
| 2 |
M
src/db.c
+2
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1666,11 +1666,13 @@ | ||
| 1666 | 1666 | while( db.pAllStmt ){ |
| 1667 | 1667 | db_finalize(db.pAllStmt); |
| 1668 | 1668 | } |
| 1669 | 1669 | db_end_transaction(1); |
| 1670 | 1670 | pStmt = 0; |
| 1671 | + g.dbIgnoreErrors++; /* Stop "database locked" warnings from PRAGMA optimize */ | |
| 1671 | 1672 | sqlite3_exec(g.db, "PRAGMA optimize", 0, 0, 0); |
| 1673 | + g.dbIgnoreErrors--; | |
| 1672 | 1674 | db_close_config(); |
| 1673 | 1675 | |
| 1674 | 1676 | /* If the localdb has a lot of unused free space, |
| 1675 | 1677 | ** then VACUUM it as we shut down. |
| 1676 | 1678 | */ |
| 1677 | 1679 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1666,11 +1666,13 @@ | |
| 1666 | while( db.pAllStmt ){ |
| 1667 | db_finalize(db.pAllStmt); |
| 1668 | } |
| 1669 | db_end_transaction(1); |
| 1670 | pStmt = 0; |
| 1671 | sqlite3_exec(g.db, "PRAGMA optimize", 0, 0, 0); |
| 1672 | db_close_config(); |
| 1673 | |
| 1674 | /* If the localdb has a lot of unused free space, |
| 1675 | ** then VACUUM it as we shut down. |
| 1676 | */ |
| 1677 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1666,11 +1666,13 @@ | |
| 1666 | while( db.pAllStmt ){ |
| 1667 | db_finalize(db.pAllStmt); |
| 1668 | } |
| 1669 | db_end_transaction(1); |
| 1670 | pStmt = 0; |
| 1671 | g.dbIgnoreErrors++; /* Stop "database locked" warnings from PRAGMA optimize */ |
| 1672 | sqlite3_exec(g.db, "PRAGMA optimize", 0, 0, 0); |
| 1673 | g.dbIgnoreErrors--; |
| 1674 | db_close_config(); |
| 1675 | |
| 1676 | /* If the localdb has a lot of unused free space, |
| 1677 | ** then VACUUM it as we shut down. |
| 1678 | */ |
| 1679 |
+2
-2
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -485,11 +485,10 @@ | ||
| 485 | 485 | ** |
| 486 | 486 | ** See also: import |
| 487 | 487 | */ |
| 488 | 488 | void export_cmd(void){ |
| 489 | 489 | Stmt q, q2, q3; |
| 490 | - int i; | |
| 491 | 490 | Bag blobs, vers; |
| 492 | 491 | unsigned int unused_mark = 1; |
| 493 | 492 | const char *markfile_in; |
| 494 | 493 | const char *markfile_out; |
| 495 | 494 | |
| @@ -509,10 +508,11 @@ | ||
| 509 | 508 | if( g.argc!=2 && g.argc!=3 ){ usage("--git ?REPOSITORY?"); } |
| 510 | 509 | |
| 511 | 510 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 512 | 511 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 513 | 512 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 513 | + db_multi_exec("CREATE INDEX xmark_trid ON xmark(trid)"); | |
| 514 | 514 | if( markfile_in!=0 ){ |
| 515 | 515 | Stmt qb,qc; |
| 516 | 516 | FILE *f; |
| 517 | 517 | int rid; |
| 518 | 518 | |
| @@ -718,11 +718,11 @@ | ||
| 718 | 718 | printf("\nfrom %s\n", zMark); |
| 719 | 719 | free(zMark); |
| 720 | 720 | printf("tagger"); |
| 721 | 721 | print_person(zUser); |
| 722 | 722 | printf(" %s +0000\n", zSecSince1970); |
| 723 | - printf("data %d\n", zValue==NULL?0:strlen(zValue)+1); | |
| 723 | + printf("data %d\n", zValue==NULL?0:(int)strlen(zValue)+1); | |
| 724 | 724 | if( zValue!=NULL ) printf("%s\n",zValue); |
| 725 | 725 | } |
| 726 | 726 | db_finalize(&q); |
| 727 | 727 | |
| 728 | 728 | if( markfile_out!=0 ){ |
| 729 | 729 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -485,11 +485,10 @@ | |
| 485 | ** |
| 486 | ** See also: import |
| 487 | */ |
| 488 | void export_cmd(void){ |
| 489 | Stmt q, q2, q3; |
| 490 | int i; |
| 491 | Bag blobs, vers; |
| 492 | unsigned int unused_mark = 1; |
| 493 | const char *markfile_in; |
| 494 | const char *markfile_out; |
| 495 | |
| @@ -509,10 +508,11 @@ | |
| 509 | if( g.argc!=2 && g.argc!=3 ){ usage("--git ?REPOSITORY?"); } |
| 510 | |
| 511 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 512 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 513 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 514 | if( markfile_in!=0 ){ |
| 515 | Stmt qb,qc; |
| 516 | FILE *f; |
| 517 | int rid; |
| 518 | |
| @@ -718,11 +718,11 @@ | |
| 718 | printf("\nfrom %s\n", zMark); |
| 719 | free(zMark); |
| 720 | printf("tagger"); |
| 721 | print_person(zUser); |
| 722 | printf(" %s +0000\n", zSecSince1970); |
| 723 | printf("data %d\n", zValue==NULL?0:strlen(zValue)+1); |
| 724 | if( zValue!=NULL ) printf("%s\n",zValue); |
| 725 | } |
| 726 | db_finalize(&q); |
| 727 | |
| 728 | if( markfile_out!=0 ){ |
| 729 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -485,11 +485,10 @@ | |
| 485 | ** |
| 486 | ** See also: import |
| 487 | */ |
| 488 | void export_cmd(void){ |
| 489 | Stmt q, q2, q3; |
| 490 | Bag blobs, vers; |
| 491 | unsigned int unused_mark = 1; |
| 492 | const char *markfile_in; |
| 493 | const char *markfile_out; |
| 494 | |
| @@ -509,10 +508,11 @@ | |
| 508 | if( g.argc!=2 && g.argc!=3 ){ usage("--git ?REPOSITORY?"); } |
| 509 | |
| 510 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 511 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 512 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 513 | db_multi_exec("CREATE INDEX xmark_trid ON xmark(trid)"); |
| 514 | if( markfile_in!=0 ){ |
| 515 | Stmt qb,qc; |
| 516 | FILE *f; |
| 517 | int rid; |
| 518 | |
| @@ -718,11 +718,11 @@ | |
| 718 | printf("\nfrom %s\n", zMark); |
| 719 | free(zMark); |
| 720 | printf("tagger"); |
| 721 | print_person(zUser); |
| 722 | printf(" %s +0000\n", zSecSince1970); |
| 723 | printf("data %d\n", zValue==NULL?0:(int)strlen(zValue)+1); |
| 724 | if( zValue!=NULL ) printf("%s\n",zValue); |
| 725 | } |
| 726 | db_finalize(&q); |
| 727 | |
| 728 | if( markfile_out!=0 ){ |
| 729 |
+2
-2
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -485,11 +485,10 @@ | ||
| 485 | 485 | ** |
| 486 | 486 | ** See also: import |
| 487 | 487 | */ |
| 488 | 488 | void export_cmd(void){ |
| 489 | 489 | Stmt q, q2, q3; |
| 490 | - int i; | |
| 491 | 490 | Bag blobs, vers; |
| 492 | 491 | unsigned int unused_mark = 1; |
| 493 | 492 | const char *markfile_in; |
| 494 | 493 | const char *markfile_out; |
| 495 | 494 | |
| @@ -509,10 +508,11 @@ | ||
| 509 | 508 | if( g.argc!=2 && g.argc!=3 ){ usage("--git ?REPOSITORY?"); } |
| 510 | 509 | |
| 511 | 510 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 512 | 511 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 513 | 512 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 513 | + db_multi_exec("CREATE INDEX xmark_trid ON xmark(trid)"); | |
| 514 | 514 | if( markfile_in!=0 ){ |
| 515 | 515 | Stmt qb,qc; |
| 516 | 516 | FILE *f; |
| 517 | 517 | int rid; |
| 518 | 518 | |
| @@ -718,11 +718,11 @@ | ||
| 718 | 718 | printf("\nfrom %s\n", zMark); |
| 719 | 719 | free(zMark); |
| 720 | 720 | printf("tagger"); |
| 721 | 721 | print_person(zUser); |
| 722 | 722 | printf(" %s +0000\n", zSecSince1970); |
| 723 | - printf("data %d\n", zValue==NULL?0:strlen(zValue)+1); | |
| 723 | + printf("data %d\n", zValue==NULL?0:(int)strlen(zValue)+1); | |
| 724 | 724 | if( zValue!=NULL ) printf("%s\n",zValue); |
| 725 | 725 | } |
| 726 | 726 | db_finalize(&q); |
| 727 | 727 | |
| 728 | 728 | if( markfile_out!=0 ){ |
| 729 | 729 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -485,11 +485,10 @@ | |
| 485 | ** |
| 486 | ** See also: import |
| 487 | */ |
| 488 | void export_cmd(void){ |
| 489 | Stmt q, q2, q3; |
| 490 | int i; |
| 491 | Bag blobs, vers; |
| 492 | unsigned int unused_mark = 1; |
| 493 | const char *markfile_in; |
| 494 | const char *markfile_out; |
| 495 | |
| @@ -509,10 +508,11 @@ | |
| 509 | if( g.argc!=2 && g.argc!=3 ){ usage("--git ?REPOSITORY?"); } |
| 510 | |
| 511 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 512 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 513 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 514 | if( markfile_in!=0 ){ |
| 515 | Stmt qb,qc; |
| 516 | FILE *f; |
| 517 | int rid; |
| 518 | |
| @@ -718,11 +718,11 @@ | |
| 718 | printf("\nfrom %s\n", zMark); |
| 719 | free(zMark); |
| 720 | printf("tagger"); |
| 721 | print_person(zUser); |
| 722 | printf(" %s +0000\n", zSecSince1970); |
| 723 | printf("data %d\n", zValue==NULL?0:strlen(zValue)+1); |
| 724 | if( zValue!=NULL ) printf("%s\n",zValue); |
| 725 | } |
| 726 | db_finalize(&q); |
| 727 | |
| 728 | if( markfile_out!=0 ){ |
| 729 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -485,11 +485,10 @@ | |
| 485 | ** |
| 486 | ** See also: import |
| 487 | */ |
| 488 | void export_cmd(void){ |
| 489 | Stmt q, q2, q3; |
| 490 | Bag blobs, vers; |
| 491 | unsigned int unused_mark = 1; |
| 492 | const char *markfile_in; |
| 493 | const char *markfile_out; |
| 494 | |
| @@ -509,10 +508,11 @@ | |
| 508 | if( g.argc!=2 && g.argc!=3 ){ usage("--git ?REPOSITORY?"); } |
| 509 | |
| 510 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 511 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 512 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 513 | db_multi_exec("CREATE INDEX xmark_trid ON xmark(trid)"); |
| 514 | if( markfile_in!=0 ){ |
| 515 | Stmt qb,qc; |
| 516 | FILE *f; |
| 517 | int rid; |
| 518 | |
| @@ -718,11 +718,11 @@ | |
| 718 | printf("\nfrom %s\n", zMark); |
| 719 | free(zMark); |
| 720 | printf("tagger"); |
| 721 | print_person(zUser); |
| 722 | printf(" %s +0000\n", zSecSince1970); |
| 723 | printf("data %d\n", zValue==NULL?0:(int)strlen(zValue)+1); |
| 724 | if( zValue!=NULL ) printf("%s\n",zValue); |
| 725 | } |
| 726 | db_finalize(&q); |
| 727 | |
| 728 | if( markfile_out!=0 ){ |
| 729 |
+1
-1
| --- src/gzip.c | ||
| +++ src/gzip.c | ||
| @@ -65,11 +65,11 @@ | ||
| 65 | 65 | if( now==-1 ){ |
| 66 | 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | 67 | } |
| 68 | 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | 69 | aHdr[8] = 2; |
| 70 | - aHdr[9] = 255; | |
| 70 | + aHdr[9] = -1; | |
| 71 | 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | 72 | gzip.iCRC = 0; |
| 73 | 73 | gzip.eState = 1; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 |
| --- src/gzip.c | |
| +++ src/gzip.c | |
| @@ -65,11 +65,11 @@ | |
| 65 | if( now==-1 ){ |
| 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | } |
| 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | aHdr[8] = 2; |
| 70 | aHdr[9] = 255; |
| 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | gzip.iCRC = 0; |
| 73 | gzip.eState = 1; |
| 74 | } |
| 75 | |
| 76 |
| --- src/gzip.c | |
| +++ src/gzip.c | |
| @@ -65,11 +65,11 @@ | |
| 65 | if( now==-1 ){ |
| 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | } |
| 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | aHdr[8] = 2; |
| 70 | aHdr[9] = -1; |
| 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | gzip.iCRC = 0; |
| 73 | gzip.eState = 1; |
| 74 | } |
| 75 | |
| 76 |
+1
-1
| --- src/gzip.c | ||
| +++ src/gzip.c | ||
| @@ -65,11 +65,11 @@ | ||
| 65 | 65 | if( now==-1 ){ |
| 66 | 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | 67 | } |
| 68 | 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | 69 | aHdr[8] = 2; |
| 70 | - aHdr[9] = 255; | |
| 70 | + aHdr[9] = -1; | |
| 71 | 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | 72 | gzip.iCRC = 0; |
| 73 | 73 | gzip.eState = 1; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 |
| --- src/gzip.c | |
| +++ src/gzip.c | |
| @@ -65,11 +65,11 @@ | |
| 65 | if( now==-1 ){ |
| 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | } |
| 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | aHdr[8] = 2; |
| 70 | aHdr[9] = 255; |
| 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | gzip.iCRC = 0; |
| 73 | gzip.eState = 1; |
| 74 | } |
| 75 | |
| 76 |
| --- src/gzip.c | |
| +++ src/gzip.c | |
| @@ -65,11 +65,11 @@ | |
| 65 | if( now==-1 ){ |
| 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | } |
| 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | aHdr[8] = 2; |
| 70 | aHdr[9] = -1; |
| 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | gzip.iCRC = 0; |
| 73 | gzip.eState = 1; |
| 74 | } |
| 75 | |
| 76 |