/* This file is part of the Zebra server.
- Copyright (C) 1994-2010 Index Data
+ Copyright (C) 1994-2011 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
ISAMC_head head;
BFile bf;
int head_is_dirty;
-
+
int no_writes;
int no_reads;
int no_skip_writes;
char *merge_buf;
ISAMC_M *method;
ISAMC_file files;
-};
+};
struct ISAMC_PP_s {
char *buf;
zint numKeys;
};
-/*
+/*
first block consists of
next pointer : zint
size : ISAMC_BLOCK_SIZE (int)
size : ISAMC_BLOCK_SIZE (int)
data
*/
-#define ISAMC_BLOCK_OFFSET_1 (sizeof(zint)+sizeof(ISAMC_BLOCK_SIZE)+sizeof(zint))
-#define ISAMC_BLOCK_OFFSET_N (sizeof(zint)+sizeof(ISAMC_BLOCK_SIZE))
+#define ISAMC_BLOCK_OFFSET_1 (sizeof(zint)+sizeof(ISAMC_BLOCK_SIZE)+sizeof(zint))
+#define ISAMC_BLOCK_OFFSET_N (sizeof(zint)+sizeof(ISAMC_BLOCK_SIZE))
zint isamc_alloc_block (ISAMC is, int cat);
void isamc_release_block (ISAMC is, int cat, zint pos);