Fossil SCM
Only set "seen-delta-manifest" once.
Commit
18d762af88a8ac9bf75c7d790780fa3c759b27e3
Parent
5ea03d389d45075…
1 file changed
+2
-2
+2
-2
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -1715,12 +1715,12 @@ | ||
| 1715 | 1715 | /* If this is a delta-manifest, record the fact that this repository |
| 1716 | 1716 | ** contains delta manifests, to free the "commit" logic to generate |
| 1717 | 1717 | ** new delta manifests. |
| 1718 | 1718 | */ |
| 1719 | 1719 | if( p->zBaseline!=0 ){ |
| 1720 | - static int once = 0; | |
| 1721 | - if( !once ){ | |
| 1720 | + static int once = 1; | |
| 1721 | + if( once ){ | |
| 1722 | 1722 | db_set_int("seen-delta-manifest", 1, 0); |
| 1723 | 1723 | once = 0; |
| 1724 | 1724 | } |
| 1725 | 1725 | } |
| 1726 | 1726 | } |
| 1727 | 1727 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1715,12 +1715,12 @@ | |
| 1715 | /* If this is a delta-manifest, record the fact that this repository |
| 1716 | ** contains delta manifests, to free the "commit" logic to generate |
| 1717 | ** new delta manifests. |
| 1718 | */ |
| 1719 | if( p->zBaseline!=0 ){ |
| 1720 | static int once = 0; |
| 1721 | if( !once ){ |
| 1722 | db_set_int("seen-delta-manifest", 1, 0); |
| 1723 | once = 0; |
| 1724 | } |
| 1725 | } |
| 1726 | } |
| 1727 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1715,12 +1715,12 @@ | |
| 1715 | /* If this is a delta-manifest, record the fact that this repository |
| 1716 | ** contains delta manifests, to free the "commit" logic to generate |
| 1717 | ** new delta manifests. |
| 1718 | */ |
| 1719 | if( p->zBaseline!=0 ){ |
| 1720 | static int once = 1; |
| 1721 | if( once ){ |
| 1722 | db_set_int("seen-delta-manifest", 1, 0); |
| 1723 | once = 0; |
| 1724 | } |
| 1725 | } |
| 1726 | } |
| 1727 |