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
For estimated hit counts, Zebra returns resultSetStatus=estimtate as
[idzebra-moved-to-github.git]
/
bfile
/
mfile.c
diff --git
a/bfile/mfile.c
b/bfile/mfile.c
index
dfbfadd
..
2295d11
100644
(file)
--- a/
bfile/mfile.c
+++ b/
bfile/mfile.c
@@
-1,5
+1,5
@@
-/* $Id: mfile.c,v 1.72 2006-12-03 16:05:13 adam Exp $
- Copyright (C) 1995-2006
+/* $Id: mfile.c,v 1.74 2007-01-15 15:10:14 adam Exp $
+ Copyright (C) 1995-2007
Index Data ApS
This file is part of the Zebra server.
Index Data ApS
This file is part of the Zebra server.
@@
-288,9
+288,6
@@
MFile_area mf_init(const char *name, const char *spec, const char *base,
mf_destroy(ma);
return 0;
}
mf_destroy(ma);
return 0;
}
-#ifndef WIN32
- fsync(fd);
-#endif
close(fd);
if (dirp->max_bytes >= 0)
dirp->avail_bytes -= part_f->bytes;
close(fd);
if (dirp->max_bytes >= 0)
dirp->avail_bytes -= part_f->bytes;
@@
-439,7
+436,8
@@
int mf_close(MFile mf)
if (mf->files[i].fd >= 0)
{
#ifndef WIN32
if (mf->files[i].fd >= 0)
{
#ifndef WIN32
- fsync(mf->files[i].fd);
+ if (mf->wr)
+ fsync(mf->files[i].fd);
#endif
close(mf->files[i].fd);
mf->files[i].fd = -1;
#endif
close(mf->files[i].fd);
mf->files[i].fd = -1;