| 241 | } |
| 242 | |
| 243 | bool checkTable(thread_db* tdbb, jrd_rel* relation) |
| 244 | { |
| 245 | if (relation->isTemporary()) |
| 246 | return false; |
| 247 | |
| 248 | if (!relation->isSystem()) |
| 249 | { |
| 250 | if (!relation->isReplicating(tdbb)) |
| 251 | return false; |
| 252 | |
| 253 | const auto attachment = tdbb->getAttachment(); |
| 254 | const auto matcher = attachment->att_repl_matcher.get(); |
| 255 | |
| 256 | if (matcher && !matcher->matchTable(relation->rel_name)) |
| 257 | return false; |
| 258 | } |
| 259 | // Do not replicate RDB$BACKUP_HISTORY as it describes physical-level things |
| 260 | else if (relation->rel_id == rel_backup_history) |
| 261 | return false; |
| 262 | |
| 263 | return true; |
| 264 | } |
| 265 | |
| 266 | Record* upgradeRecord(thread_db* tdbb, jrd_rel* relation, Record* record) |
| 267 | { |
no test coverage detected