X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Flockidx.c;h=1469f013399c8d2d2c4e1fa4c56c0873ba1af027;hb=45a6ad99e5210bc4ef39bf00d81aee8f0fb26168;hp=cd2583fd470ee96e7d24bb445e0d4d7e90b799c6;hpb=49f1c8c877affdeb9e9221047c48beed3f475afb;p=idzebra-moved-to-github.git diff --git a/index/lockidx.c b/index/lockidx.c index cd2583f..1469f01 100644 --- a/index/lockidx.c +++ b/index/lockidx.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: lockidx.c,v $ - * Revision 1.16 1999-02-02 14:50:57 adam + * Revision 1.17 1999-12-08 15:03:11 adam + * Implemented bf_reset. + * + * Revision 1.16 1999/02/02 14:50:57 adam * Updated WIN32 code specific sections. Changed header. * * Revision 1.15 1998/02/17 10:31:33 adam @@ -167,10 +170,11 @@ void zebraIndexUnlock (void) char path[1024]; zebra_lock_destroy (server_lock_main); + server_lock_main = 0; zebra_lock_prefix (common_resource, path); strcat (path, FNAME_MAIN_LOCK); - if (unlink (path)) - logf (LOG_WARN|LOG_ERRNO, "unlink %s", path); + if (unlink (path) && errno != ENOENT) + logf (LOG_WARN|LOG_ERRNO, "unlink %s failed", path); } void zebraIndexLock (BFiles bfs, int commitNow, const char *rval)