Added functionality to ctstat to retrieve lock information by file or by user. The ctstat -filelocks datafile and ctstat -userlocks user reports have been added.
For the -filelocks report:
For the -userlocks report:
Dumping large quantities of locks in a very active system could affect performance. Because the -userlocks report may generate a large number of server calls (for each task ID and file), the -userlocks report interval may be increased up to 60 seconds, depending on the number of matching users and files involved.
-filelocks Notes
The -filelocks option lists all locks on a data file and, optionally, displays the Nth key. The lock offset and the associated keys are not read at the same time. Since we are reading records locked by other users to generate the key, there is no guaranteed relationship between the lock and the displayed key. The following are possible scenarios: