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])

mgagnon 2025-03-02 18:57 trunk
Commit 28436ab9d5a1d6691a85f5f10f59beeb660fd79b7d5aa11abea2cd1b6d964bce
1 file changed +1 -2
+1 -2
--- src/main.c
+++ src/main.c
@@ -3599,15 +3599,14 @@
35993599
g.httpSSLConn = 0;
36003600
}
36013601
#endif /* FOSSIL_ENABLE_SSL */
36023602
36033603
#else /* WIN32 */
3604
- find_server_repository(2, 0);
3604
+ /* Win32 implementation */
36053605
if( fossil_strcmp(g.zRepositoryName,"/")==0 ){
36063606
allowRepoList = 1;
36073607
}
3608
- /* Win32 implementation */
36093608
if( allowRepoList ){
36103609
flags |= HTTP_SERVER_REPOLIST;
36113610
}
36123611
if( win32_http_service(iPort, zAltBase, zNotFound, zFileGlob, flags) ){
36133612
win32_http_server(iPort, mxPort, zBrowserCmd, zStopperFile,
36143613
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button