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
Several updates for the changes of hit count datatype from int
[idzebra-moved-to-github.git]
/
bfile
/
bfile.c
diff --git
a/bfile/bfile.c
b/bfile/bfile.c
index
3ba061e
..
41b8a62
100644
(file)
--- a/
bfile/bfile.c
+++ b/
bfile/bfile.c
@@
-1,6
+1,6
@@
-/* $Id: bfile.c,v 1.37 2004-11-19 10:26:53 heikki Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
- Index Data Aps
+/* $Id: bfile.c,v 1.39 2005-01-15 19:38:17 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
This file is part of the Zebra server.
@@
-20,8
+20,6
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
02111-1307, USA.
*/
-
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-33,10
+31,17
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#endif
#include <zebrautl.h>
#endif
#include <zebrautl.h>
-#include <bfile.h>
-
+#include <idzebra/bfile.h>
+#include "mfile.h"
#include "cfile.h"
#include "cfile.h"
+struct BFile_struct
+{
+ MFile mf;
+ Zebra_lock_rdwr rdwr_lock;
+ struct CFile_struct *cf;
+};
+
struct BFiles_struct {
MFile_area commit_area;
MFile_area_struct *register_area;
struct BFiles_struct {
MFile_area commit_area;
MFile_area_struct *register_area;
@@
-117,7
+122,7
@@
int bf_close (BFile bf)
BFile bf_open (BFiles bfs, const char *name, int block_size, int wflag)
{
BFile bf_open (BFiles bfs, const char *name, int block_size, int wflag)
{
- BFile tmp = (BFile) xmalloc(sizeof(BFile_struct));
+ BFile tmp = (BFile) xmalloc(sizeof(struct BFile_struct));
if (bfs->commit_area)
{
if (bfs->commit_area)
{