gpstate: fix getting version information
We no longer have a filerep-based API to be able to retrieve a mirror's version. Instead, have the postmaster append a known string (POSTMASTER_MIRROR_VERSION_DETAIL_MSG) to the detail message when a client attempts to connect to a mirror. gpstate will then look for this string to determine a mirror's version. (This is similar to the current practice of returning replication state in the detail message.) Co-authored-by: NMark Sliva <msliva@pivotal.io> Co-authored-by: NJacob Champion <pchampion@pivotal.io>
Showing
想要评论请 注册 或 登录