Fossil SCM
Remove an extraneous call of find_server_repository() in win32 implementation of server/ui. It even cause some unnecessary lock which prevent "fossil close" delete the checkout db while a server instance is running. (reported in forum post: [forum:e7f3472c46eae4bd])
Commit
28436ab9d5a1d6691a85f5f10f59beeb660fd79b7d5aa11abea2cd1b6d964bce
Parent
b097e6899e6dc0c…
1 file changed
+1
-2
+1
-2
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -3599,15 +3599,14 @@ | ||
| 3599 | 3599 | g.httpSSLConn = 0; |
| 3600 | 3600 | } |
| 3601 | 3601 | #endif /* FOSSIL_ENABLE_SSL */ |
| 3602 | 3602 | |
| 3603 | 3603 | #else /* WIN32 */ |
| 3604 | - find_server_repository(2, 0); | |
| 3604 | + /* Win32 implementation */ | |
| 3605 | 3605 | if( fossil_strcmp(g.zRepositoryName,"/")==0 ){ |
| 3606 | 3606 | allowRepoList = 1; |
| 3607 | 3607 | } |
| 3608 | - /* Win32 implementation */ | |
| 3609 | 3608 | if( allowRepoList ){ |
| 3610 | 3609 | flags |= HTTP_SERVER_REPOLIST; |
| 3611 | 3610 | } |
| 3612 | 3611 | if( win32_http_service(iPort, zAltBase, zNotFound, zFileGlob, flags) ){ |
| 3613 | 3612 | win32_http_server(iPort, mxPort, zBrowserCmd, zStopperFile, |
| 3614 | 3613 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -3599,15 +3599,14 @@ | |
| 3599 | g.httpSSLConn = 0; |
| 3600 | } |
| 3601 | #endif /* FOSSIL_ENABLE_SSL */ |
| 3602 | |
| 3603 | #else /* WIN32 */ |
| 3604 | find_server_repository(2, 0); |
| 3605 | if( fossil_strcmp(g.zRepositoryName,"/")==0 ){ |
| 3606 | allowRepoList = 1; |
| 3607 | } |
| 3608 | /* Win32 implementation */ |
| 3609 | if( allowRepoList ){ |
| 3610 | flags |= HTTP_SERVER_REPOLIST; |
| 3611 | } |
| 3612 | if( win32_http_service(iPort, zAltBase, zNotFound, zFileGlob, flags) ){ |
| 3613 | win32_http_server(iPort, mxPort, zBrowserCmd, zStopperFile, |
| 3614 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -3599,15 +3599,14 @@ | |
| 3599 | g.httpSSLConn = 0; |
| 3600 | } |
| 3601 | #endif /* FOSSIL_ENABLE_SSL */ |
| 3602 | |
| 3603 | #else /* WIN32 */ |
| 3604 | /* Win32 implementation */ |
| 3605 | if( fossil_strcmp(g.zRepositoryName,"/")==0 ){ |
| 3606 | allowRepoList = 1; |
| 3607 | } |
| 3608 | if( allowRepoList ){ |
| 3609 | flags |= HTTP_SERVER_REPOLIST; |
| 3610 | } |
| 3611 | if( win32_http_service(iPort, zAltBase, zNotFound, zFileGlob, flags) ){ |
| 3612 | win32_http_server(iPort, mxPort, zBrowserCmd, zStopperFile, |
| 3613 |