CLEAR-ITEM-LOCKS


The CLEAR-ITEM-LOCKS command can be used to clear a specific lock or all locks taken against a specific file. This command can only be used with jBASE hashed files.

 

COMMAND SYNTAX

CLEAR-ITEM-LOCKS filename
CLEAR-ITEM-LOCKS filename, itemname

 

NOTES

  • This command can only be issued by a user with root/administrator privileges.
  • To clear a lock on a distributed file, the part file where the locked item exists must be specified.

Also see the SHOW-ITEM-LOCKS command.

CLEAR-ITEM-LOCKS should be used with extreme caution and only as a last resort. The necessity to use CLEAR-ITEM-LOCKS is a clear indication of an application with a poorly designed locking strategy.

 

EXAMPLES

CLEAR-ITEM-LOCKS INVENTORY, PDT603

Clears the lock on the item PDT603 in the INVENTORY file.

CLEAR-ITEM-LOCKS INVENTORY

Clears all item locks in place on the INVENTORY file.

CLEAR-ITEM-LOCKS CASE]M2002, R47FC9Z

Clears the lock on the item R47FC9Z in the multi-level file CASE, data section 2002.


Utilities