----- Original Message -----
From: "David Teigland" <teigland(a)fedoraproject.org>
To: sanlock-devel(a)lists.fedorahosted.org
Sent: Monday, August 11, 2014 6:53:22 PM
Subject: src/lockspace.c
src/lockspace.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 22ad01ac8d1c6c50c2565cf220878384a8c64694
Author: David Teigland <teigland(a)redhat.com>
Date: Mon Aug 11 10:51:34 2014 -0500
sanlock: host event struct missing host_id in get_event
The destination host_id should be set so the struct
from get_event matches the struct from set_event.
Signed-off-by: David Teigland <teigland(a)redhat.com>
diff --git a/src/lockspace.c b/src/lockspace.c
index fe09d99..2db1cce 100644
--- a/src/lockspace.c
+++ b/src/lockspace.c
@@ -337,6 +337,7 @@ void check_other_leases(struct space *sp, char *buf)
*/
memset(&he, 0, sizeof(he));
+ he.host_id = sp->host_id;
This looks correct - but I still get:
{'data': 0L,
'event': 1L,
'from_generation': 24L,
'from_host_id': 1L,
'generation': 18L,
'host_id': 0L}
Running master with the python-bindings patch.
he.generation = leader->write_id;
he.event = leader->write_generation;
he.data = leader->write_timestamp;
_______________________________________________
sanlock-devel mailing list
sanlock-devel(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sanlock-devel