From 403683e0902c5ca26fea830ffc5f8098015b4e44 Mon Sep 17 00:00:00 2001 From: angelo <angelo@c028cbd2-c16b-5b4b-a496-9718f37d4682> Date: Mon, 10 Jul 1995 10:04:25 +0000 Subject: [PATCH] Corretto lock esclusivo dei file. git-svn-id: svn://10.65.10.50/trunk@1581 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/codeb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/codeb.c b/include/codeb.c index 372938829..e452f09a6 100755 --- a/include/codeb.c +++ b/include/codeb.c @@ -487,7 +487,7 @@ int DB_lockfile(int handle) if(dbdata[handle]==0) return(-1); rt = d4lock_file(dbdata[handle]); - if (rt>=0) rt=d4lock_index(dbdata[handle]); + if (rt==0) rt=d4lock_index(dbdata[handle]); return(rt); }