Fix incorrect comparison in pgxcnode_gethash master
authorTomas Vondra <[email protected]>
Fri, 12 Oct 2018 12:32:54 +0000 (14:32 +0200)
committerTomas Vondra <[email protected]>
Fri, 12 Oct 2018 12:35:34 +0000 (14:35 +0200)
commit1cc1df104888bd4fd2c9c86aa6846543c78609be
treedbe06f2daabdfa661b418d8e91d81dc88a7c6b6f
parentcf2518f48d2d1daf0807a774177b21f9549ec8a7
Fix incorrect comparison in pgxcnode_gethash

The check is supposed to ensure NULL/empty nodename gets hashed to 0,
but (nodename == '\0') is comparing the pointer itself, not the first
character. So dereference that correctly.
src/gtm/recovery/register_common.c