| 177 | } |
| 178 | |
| 179 | bool |
| 180 | getDistributedTransactionIdentifier(char *id) |
| 181 | { |
| 182 | Assert(MyTmGxactLocal != NULL); |
| 183 | |
| 184 | if (isDtxContext() && MyTmGxact->gxid != InvalidDistributedTransactionId) |
| 185 | { |
| 186 | /* |
| 187 | * The length check here requires the identifer have a trailing |
| 188 | * NUL character. |
| 189 | */ |
| 190 | dtxFormGid(id, MyTmGxact->gxid); |
| 191 | return true; |
| 192 | } |
| 193 | |
| 194 | MemSet(id, 0, TMGIDSIZE); |
| 195 | return false; |
| 196 | } |
| 197 | |
| 198 | bool |
| 199 | isPreparedDtxTransaction(void) |
no test coverage detected