| 147 | } |
| 148 | |
| 149 | static void |
| 150 | requireDistributedTransactionContext(DtxContext requiredCurrentContext) |
| 151 | { |
| 152 | if (DistributedTransactionContext != requiredCurrentContext) |
| 153 | { |
| 154 | elog(FATAL, "Expected segment distributed transaction context to be '%s', found '%s'", |
| 155 | DtxContextToString(requiredCurrentContext), |
| 156 | DtxContextToString(DistributedTransactionContext)); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | static bool |
| 161 | isDtxContext(void) |
no test coverage detected