Patch level : 12.0 784
Files correlati : Commento : Modificata DB_add e DB_ rewrie per provare a sistemare gli errori di unlock del CRPA.
This commit is contained in:
parent
13c6f81a5d
commit
3b8c6ed067
@ -442,8 +442,10 @@ int DB_rewrite(int handle)
|
|||||||
|
|
||||||
if (rt == 0)
|
if (rt == 0)
|
||||||
rt = DB_flush(handle);
|
rt = DB_flush(handle);
|
||||||
rt = DB_unlock(handle);
|
|
||||||
return (rt);
|
const int rt1 = DB_unlock(handle);
|
||||||
|
|
||||||
|
return (rt == 0 ? rt1: rt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -481,7 +483,12 @@ int DB_add(int handle)
|
|||||||
{
|
{
|
||||||
if (rt == 0)
|
if (rt == 0)
|
||||||
rt = DB_flush(handle);
|
rt = DB_flush(handle);
|
||||||
}
|
|
||||||
|
const int rt1 = DB_unlock(handle);
|
||||||
|
|
||||||
|
if (rt == 0)
|
||||||
|
rt = rt1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return rt;
|
return rt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user