projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug regarding user-defined attribute sets.
[idzebra-moved-to-github.git]
/
index
/
lockidx.c
diff --git
a/index/lockidx.c
b/index/lockidx.c
index
7adf2eb
..
26af684
100644
(file)
--- a/
index/lockidx.c
+++ b/
index/lockidx.c
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: lockidx.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: lockidx.c,v $
- * Revision 1.18 2000-02-24 11:00:07 adam
+ * Revision 1.20 2000-10-16 20:16:00 adam
+ * Fixed problem with close of lock file for WIN32.
+ *
+ * Revision 1.19 2000/09/05 14:04:05 adam
+ * Updates for prefix 'yaz_' for YAZ log functions.
+ *
+ * Revision 1.18 2000/02/24 11:00:07 adam
* Fixed bug: indexer would run forever when lock dir was non-existant.
*
* Revision 1.17 1999/12/08 15:03:11 adam
* Fixed bug: indexer would run forever when lock dir was non-existant.
*
* Revision 1.17 1999/12/08 15:03:11 adam
@@
-172,12
+178,18
@@
void zebraIndexUnlock (void)
{
char path[1024];
{
char path[1024];
- zebra_lock_destroy (server_lock_main);
- server_lock_main = 0;
zebra_lock_prefix (common_resource, path);
strcat (path, FNAME_MAIN_LOCK);
zebra_lock_prefix (common_resource, path);
strcat (path, FNAME_MAIN_LOCK);
+#ifdef WIN32
+ zebra_lock_destroy (server_lock_main);
if (unlink (path) && errno != ENOENT)
logf (LOG_WARN|LOG_ERRNO, "unlink %s failed", path);
if (unlink (path) && errno != ENOENT)
logf (LOG_WARN|LOG_ERRNO, "unlink %s failed", path);
+#else
+ if (unlink (path) && errno != ENOENT)
+ logf (LOG_WARN|LOG_ERRNO, "unlink %s failed", path);
+ zebra_lock_destroy (server_lock_main);
+#endif
+ server_lock_main = 0;
}
int zebraIndexLock (BFiles bfs, int commitNow, const char *rval)
}
int zebraIndexLock (BFiles bfs, int commitNow, const char *rval)