From 2c381d0b592241769db6e2b599e60c1712604a57 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 29 Sep 2006 07:05:44 +0000 Subject: [PATCH] Do not use sync(2) after commit. The fsync on individual files suffices. --- index/zebraapi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index/zebraapi.c b/index/zebraapi.c index c944c96..f54589b 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.228 2006-09-21 20:22:34 adam Exp $ +/* $Id: zebraapi.c,v 1.229 2006-09-29 07:05:44 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -2027,9 +2027,6 @@ static ZEBRA_RES zebra_commit_ex(ZebraHandle zh, int clean_only) yaz_log (YLOG_DEBUG, "commit start"); bf_commitExec (bfs); -#ifndef WIN32 - sync (); -#endif } seqno++; zebra_set_state (zh, 'o', seqno); -- 1.7.10.4