File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/4-language-usage/8-patterns/4-ensure-single-execution-at-a-time-of-a-program-unit Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- # G-8410: Always use application locks to ensure a program unit only running once at a given time.
1+ # G-8410: Always use application locks to ensure a program unit is only running once at a given time.
22
33!!! tip "Minor"
44 Efficiency, Reliability
@@ -39,11 +39,11 @@ DECLARE
3939BEGIN
4040 lock_up.request_lock(in_lock_name => co_lock_name);
4141 -- processing
42- lock_up.release_lock(in_lock_handle => l_handle );
42+ lock_up.release_lock(in_lock_name => co_lock_name );
4343EXCEPTION
4444 WHEN OTHERS THEN
4545 -- log error
46- lock_up.release_lock(in_lock_handle => l_handle );
46+ lock_up.release_lock(in_lock_name => co_lock_name );
4747 RAISE;
4848END;
4949/
You can’t perform that action at this time.
0 commit comments