}
private int showLocksNewFormat(ShowLocksDesc showLocks, HiveLockManager lm)
throws HiveException {
DbLockManager lockMgr;
if (!(lm instanceof DbLockManager)) {
throw new RuntimeException("New lock format only supported with db lock manager.");
}
lockMgr = (DbLockManager)lm;
ShowLocksResponse rsp = lockMgr.getLocks();
// write the results in the file
DataOutputStream os = null;
try {
Path resFile = new Path(showLocks.getResFile());