src/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 06c6ffce24f71bfa9eb58342949a0bb62752efd4 Author: David Teigland teigland@redhat.com Date: Mon Aug 27 11:05:35 2012 -0500
sanlock: fix status of lockspaces in add and rem
The sanlock client status command was reporting lockspaces in the rem list twice, and missing the add list, instead of once over both lists.
Signed-off-by: David Teigland teigland@redhat.com
diff --git a/src/cmd.c b/src/cmd.c index c293275..7b7119f 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1644,7 +1644,7 @@ static void cmd_status(int fd, struct sm_header *h_recv, int client_maxi) pthread_mutex_lock(&spaces_mutex); list_for_each_entry(sp, &spaces, list) send_state_lockspace(fd, sp, "spaces"); - list_for_each_entry(sp, &spaces_rem, list) + list_for_each_entry(sp, &spaces_add, list) send_state_lockspace(fd, sp, "spaces_rem"); list_for_each_entry(sp, &spaces_rem, list) send_state_lockspace(fd, sp, "spaces_add");
sanlock-devel@lists.fedorahosted.org