1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

lvmlockd: fix missing closedir

in get_local_nodeid from recent lock purge feature:
  lvmlockd: purge the lock resources left in previous lockspace
This commit is contained in:
David Teigland 2022-12-01 09:53:57 -06:00
parent e63b0c7262
commit 55b29c1c3d

View File

@ -260,6 +260,7 @@ static int get_local_nodeid(void)
rv = sscanf(line, "%d", &val);
if (rv == 1) {
fclose(file);
closedir(ls_dir);
return val;
}
}
@ -270,7 +271,7 @@ static int get_local_nodeid(void)
if (closedir(ls_dir))
log_error("get_local_nodeid closedir error");
return rv;
return rv;
}
int lm_purge_locks_dlm(struct lockspace *ls)