This command lists open byte range locks.
Usage
cluster list-locks --file-path PATH [--tenant-id ID] [--direction prev|next]
Required Parameters
| Specify the file path within the tenant. |
Options
| Specify the ID of the tenant where the file resides. If this option is not specified, the default tenant is used. |
| Set the pagination direction. |
| Formats the output so that the fields for each item are displayed beneath it. If not specified, the fields extend horizontally to the right. |
Example
vcli: admin> cluster list-locks --path /open.txt +------+-------------+--------+-------+-----------+--------+--------+------+-------+-----------+-------------+---------+---------+-------------------+-----------+---------------------+ | Type | Create-Time | Caller | Owner | Exclusive | Offset | Length | Svid | State | Lock-path | Tenant-name | Open-id | Lock-id | Lock-granted-type | Client-id | Create-time-seconds | +------+-------------+--------+-------+-----------+--------+--------+------+-------+-----------+-------------+---------+---------+-------------------+-----------+---------------------+ +------+-------------+--------+-------+-----------+--------+--------+------+-------+-----------+-------------+---------+---------+-------------------+-----------+---------------------+