Ripristinata correzione sul lock esclusivo dei file (r 1.8).
Questo commit e' servito anche a togliere i ^M git-svn-id: svn://10.65.10.50/trunk@1611 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
50ff6990ed
commit
8285ab7fec
@ -430,7 +430,7 @@ int DB_flush(int handle)
|
||||
#ifdef DBG
|
||||
message_box("Sono in attesa nella DB_add (d4append)");
|
||||
#else
|
||||
u4delay_sec();
|
||||
u4delay_sec();
|
||||
#endif
|
||||
return rt;
|
||||
}
|
||||
@ -454,7 +454,7 @@ int DB_rewrite(int handle)
|
||||
#ifdef DBG
|
||||
message_box("Sono in attesa nella DB_add (d4append)");
|
||||
#else
|
||||
u4delay_sec();
|
||||
u4delay_sec();
|
||||
#endif
|
||||
}
|
||||
if (rt == e4unique)
|
||||
@ -480,7 +480,7 @@ int DB_add(int handle)
|
||||
#ifdef DBG
|
||||
message_box("Sono in attesa nella DB_add");
|
||||
#else
|
||||
u4delay_sec();
|
||||
u4delay_sec();
|
||||
#endif
|
||||
while ((rt = d4append_start(data,0)) == r4locked)
|
||||
#ifdef DBG
|
||||
@ -495,7 +495,7 @@ int DB_add(int handle)
|
||||
#ifdef DBG
|
||||
message_box("Sono in attesa nella DB_add (d4append)");
|
||||
#else
|
||||
u4delay_sec();
|
||||
u4delay_sec();
|
||||
#endif
|
||||
if (rt == e4unique)
|
||||
{
|
||||
@ -512,7 +512,7 @@ int DB_add(int handle)
|
||||
#ifdef DBG
|
||||
message_box("Sono in attesa nella DB_add (d4append)");
|
||||
#else
|
||||
u4delay_sec();
|
||||
u4delay_sec();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -530,7 +530,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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user