X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Flocksrv.c;h=176aba58aa05221138031548974e4836c3587a44;hb=df117f4652b6999cf689cf5e2e65f8d8541ab4b0;hp=10cf88194d109bafce008ae0331014ab13ff0651;hpb=eb2b742588ce07fb4516bbca22c93b938b13e433;p=idzebra-moved-to-github.git diff --git a/index/locksrv.c b/index/locksrv.c index 10cf881..176aba5 100644 --- a/index/locksrv.c +++ b/index/locksrv.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: locksrv.c,v $ - * Revision 1.14 2000-03-15 15:00:30 adam + * Revision 1.15 2000-12-01 17:59:08 adam + * Fixed bug regarding online updates on WIN32. + * When zebra.cfg is not available the server will not abort. + * + * Revision 1.14 2000/03/15 15:00:30 adam * First work on threaded version. * * Revision 1.13 1999/05/26 07:49:13 adam @@ -71,7 +75,6 @@ int zebra_server_lock_init (ZebraService zi) { char path_prefix[1024]; - assert (zi->res); zi->server_lock_cmt = NULL; zi->server_lock_org = NULL; @@ -156,7 +159,7 @@ int zebra_server_lock_get_state (ZebraService zi, time_t *timep) if (stat (path, &xstat) == -1) *timep = 1; else - *timep = xstat.st_ctime; + *timep = xstat.st_mtime; strcpy (path, zi->server_path_prefix); strcat (path, FNAME_MAIN_LOCK);