X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fbfile.c;h=da118be0f563d6620f67228ba606da8c097dfc7d;hb=e6c40598be6d20486d0c17fa115af66b9ee54d07;hp=1f6f49dc36716a3b79f164cbbbf7b7a0347fdde8;hpb=0f78f3fe78e859d9f0d3f0d3e13fcd28085dd427;p=idzebra-moved-to-github.git diff --git a/bfile/bfile.c b/bfile/bfile.c index 1f6f49d..da118be 100644 --- a/bfile/bfile.c +++ b/bfile/bfile.c @@ -1,8 +1,5 @@ -/* $Id: bfile.c,v 1.52 2006-11-14 08:12:06 adam Exp $ - Copyright (C) 1995-2006 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + 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 @@ -55,7 +52,7 @@ struct BFile_struct struct BFiles_struct { MFile_area commit_area; - MFile_area_struct *register_area; + MFile_area register_area; char *base; char *cache_fname; }; @@ -68,7 +65,7 @@ BFiles bfs_create (const char *spec, const char *base) bfs->cache_fname = 0; if (base) bfs->base = xstrdup(base); - bfs->register_area = mf_init("register", spec, base); + bfs->register_area = mf_init("register", spec, base, 0); if (!bfs->register_area) { bfs_destroy(bfs); @@ -108,7 +105,7 @@ ZEBRA_RES bf_cache(BFiles bfs, const char *spec) { yaz_log(YLOG_LOG, "enabling shadow spec=%s", spec); if (!bfs->commit_area) - bfs->commit_area = mf_init("shadow", spec, bfs->base); + bfs->commit_area = mf_init("shadow", spec, bfs->base, 1); if (bfs->commit_area) { bfs->cache_fname = xmalloc(strlen(bfs->commit_area->dirs->name)+ @@ -513,6 +510,7 @@ int bfs_shadow_directory_stat(BFiles bfs, int no, const char **directory, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab