diff options
author | Pavan Deolasee | 2016-02-15 09:52:53 +0000 |
---|---|---|
committer | Pavan Deolasee | 2016-10-18 09:58:30 +0000 |
commit | 4771f06eeb0058985a4dd2d860eb48c7e77090e0 (patch) | |
tree | 91375006422099bc79548f4e1243eda78aa87f77 | |
parent | 3beff8169d05a2b7f8a7f1db98641dad5812e6d0 (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.c | 5 |
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; } |