X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=94840679fe438ce82e2592f1dc7b025939191d3a;hb=6a7088b090b78123ccfaa3ba00e1ea81647b173c;hp=99bdc1e788982828dd5a2e89800d54a11f47e525;hpb=78f44060729d1f0c82a396aab1d05cbb75226d2d;p=brisk.git diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 99bdc1e..9484067 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -992,7 +992,7 @@ class Bin5 { return ($ret); } - static function lock_data($table_idx) + static function lock_data($is_exclusive, $table_idx) { GLOBAL $sess; @@ -1004,7 +1004,7 @@ class Bin5 { return (FALSE); } // WARNING monitor this step - if (($res = @sem_get($tok)) == FALSE) { + if (($res = @sem_get($tok, ($is_exclusive ? 1 : LOCK_SHARE_MAX) )) == FALSE) { return (FALSE); } if (sem_acquire($res)) {