mirror_corosync/exec
Jan Friesse 9b3782e48e totemsrp: Fix srp_addr_compare
There is regression caused by "totem: Use nodeid ONLY in srp_addr" patch
in srp_addr_compare function. This function should be usable with qsort,
so it should return values less than, equal to or greater than zero. It
was however returning only zero or negation of a zero. Final results
were unable to reach consensus in following test case:
- 3 node cluster
- start nodes 1, 2, 3
- shutdown node 3
- start node 3
- shutdown node 2
- start node 2
- shutdown node 1

After this steps, node 2 and 3 were unable to reach consensus.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
2018-04-23 17:45:29 +02:00
..
.gitignore Add .gitignore files. 2010-10-21 07:43:46 -07:00
apidef.c CFG: Remove ring-reenable code 2017-08-03 14:32:02 +02:00
apidef.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
cfg.c knet: Always use link0 for loopback 2018-03-01 14:23:20 +01:00
cmap.c cmap: Remove noop highest config version check 2017-10-11 17:11:33 +02:00
coroparse.c totem: Use nodeid ONLY in srp_addr 2018-03-01 14:18:51 +01:00
cpg.c totem: Use nodeid ONLY in srp_addr 2018-03-01 14:18:51 +01:00
cs_queue.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
fsm.h Make logging of WD and MON service correct 2012-08-16 14:45:15 +02:00
icmap.c stats: Add map with on-demand statistics 2017-07-27 15:53:04 +02:00
ipc_glue.c stats: Add cmap key to clear the various stats. 2017-10-31 17:39:14 +01:00
ipcs_stats.h stats: Add cmap key to clear the various stats. 2017-10-31 17:39:14 +01:00
logconfig.c logging: Make blackbox configurable 2018-01-30 13:21:48 +01:00
logconfig.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
logsys.c logging: Close before and open blackbox after fork 2018-01-30 13:21:52 +01:00
main.c Fix typo: sucesfully -> successfully 2018-04-20 12:04:49 +02:00
main.h Reload: Make coroparse use a designated icmap hash table 2013-09-12 16:09:06 +01:00
Makefile.am [build] fix build with non-standard knet location 2018-02-05 15:57:12 +01:00
mon.c list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
pload.c build: bring SOLARIS up to the same standard as other OSes 2012-08-30 15:00:27 +02:00
quorum.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
quorum.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
schedwrk.c schedwrk: Cleanup and make it work on PPC BE 2016-05-17 16:29:25 +02:00
schedwrk.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
service.c service: Fix memleak in service_unlink_and_exit 2013-06-21 11:21:29 +02:00
service.h service: remove leftovers from mt corosync 2012-08-09 15:10:16 +02:00
stats.c stats: Add some missing knet stats 2017-11-16 08:35:50 +01:00
stats.h stats: Add map with on-demand statistics 2017-07-27 15:53:04 +02:00
sync.c sync: Call sync_init of all services at once 2017-11-16 15:22:19 +01:00
sync.h sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
timer.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
timer.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemconfig.c config: Allow use of ring0_addr 2018-03-01 14:21:37 +01:00
totemconfig.h config: Allow links to have different ip_versions 2017-12-22 17:15:19 +01:00
totemip.c totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemknet.c totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemknet.h totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemnet.c totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemnet.h totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totempg.c knet: Always use link0 for loopback 2018-03-01 14:23:20 +01:00
totemsrp.c totemsrp: Fix srp_addr_compare 2018-04-23 17:45:29 +02:00
totemsrp.h knet: Always use link0 for loopback 2018-03-01 14:23:20 +01:00
totemudp.c totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemudp.h totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemudpu.c totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemudpu.h totem: Display IP of sender 2018-03-16 13:58:15 +01:00
util.c list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
util.h stats: Add map with on-demand statistics 2017-07-27 15:53:04 +02:00
votequorum.c totem: Use nodeid ONLY in srp_addr 2018-03-01 14:18:51 +01:00
votequorum.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
vsf_quorum.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
vsf_ykd.c YKD: Fix loading of YKD quorum module 2014-08-18 09:33:59 +01:00
vsf_ykd.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
vsf.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
wd.c wd: fix snprintf warnings 2017-12-01 17:23:54 +01:00