summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2016-02-15 09:52:53 +0000
committerPavan Deolasee2016-10-18 09:58:30 +0000
commit4771f06eeb0058985a4dd2d860eb48c7e77090e0 (patch)
tree91375006422099bc79548f4e1243eda78aa87f77
parent3beff8169d05a2b7f8a7f1db98641dad5812e6d0 (diff)
Correctly check for implicit 2PC.
Now we have far more information embedded in the GID string. So there is no point looking for [0-9]+ pattern beyond the prefix. Just assume external tools would never use that pattern (PREPARE TRANSACTION should anyway throw an error if they try to use the pattern)
-rw-r--r--contrib/pgxc_clean/txninfo.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/contrib/pgxc_clean/txninfo.c b/contrib/pgxc_clean/txninfo.c
index dae047e745..804b2da18e 100644
--- a/contrib/pgxc_clean/txninfo.c
+++ b/contrib/pgxc_clean/txninfo.c
@@ -439,11 +439,6 @@ static int check_xid_is_implicit(char *xid)
{
if (strncmp(xid, XIDPREFIX, strlen(XIDPREFIX)) != 0)
return 0;
- for(xid += strlen(XIDPREFIX); *xid; xid++)
- {
- if (*xid < '0' || *xid > '9')
- return 0;
- }
return 1;
}