Simplify and optimize commit clean operation
[idzebra-moved-to-github.git] / bfile / commit.c
index f0dfd37..9fda156 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: commit.c,v 1.27 2006-05-10 08:13:17 adam Exp $
-   Copyright (C) 1995-2005
+/* $Id: commit.c,v 1.29 2006-10-09 22:10:00 adam Exp $
+   Copyright (C) 1995-2006
    Index Data ApS
 
 This file is part of the Zebra server.
@@ -15,9 +15,9 @@ FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 for more details.
 
 You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra.  If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
 */
 
 
@@ -31,20 +31,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 
 #define CF_OPTIMIZE_COMMIT 0
 
-void cf_unlink(CFile cf)
-{
-    if (cf->bucket_in_memory)
-    {
-        yaz_log (YLOG_FATAL, "Cannot unlink potential dirty cache");
-        exit (1);
-    }
-    cf->head.state = 0;
-    cf->dirty = 1;
-    mf_unlink (cf->block_mf);
-    mf_unlink (cf->hash_mf);
-}
-
-
 #if CF_OPTIMIZE_COMMIT
 struct map_cache_entity {
     int from;