diff options
| author | Michael P | 2011-03-30 16:12:15 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2011-05-24 10:15:38 +0000 |
| commit | 147d0b4a7d172d1f36c61f091c67a0c2efa15986 (patch) | |
| tree | 0df3c944bd8408f47e4656e7f42fcca8f5236d3b | |
| parent | 12a24a40765d64691ec2ac7d5dbcc561b3806b9f (diff) | |
Fix for bug 3160456: sequence error values
If an error occured on GTM for currval or nextval,
the incorrect value EINVAL (22) was returned to Postgres-XC node.
| -rw-r--r-- | src/gtm/main/gtm_seq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtm/main/gtm_seq.c b/src/gtm/main/gtm_seq.c index b503ca083e..35dc023ea0 100644 --- a/src/gtm/main/gtm_seq.c +++ b/src/gtm/main/gtm_seq.c @@ -657,7 +657,7 @@ GTM_SeqGetCurrent(GTM_SequenceKey seqkey) ereport(LOG, (EINVAL, errmsg("The sequence with the given key does not exist"))); - return EINVAL; + return InvalidSequenceValue; } GTM_RWLockAcquire(&seqinfo->gs_lock, GTM_LOCKMODE_WRITE); @@ -719,7 +719,7 @@ GTM_SeqGetNext(GTM_SequenceKey seqkey) ereport(LOG, (EINVAL, errmsg("The sequence with the given key does not exist"))); - return EINVAL; + return InvalidSequenceValue; } GTM_RWLockAcquire(&seqinfo->gs_lock, GTM_LOCKMODE_WRITE); |
