| 770 | } |
| 771 | |
| 772 | TableStats NodeTable::getStats(const Transaction* transaction) const { |
| 773 | auto stats = nodeGroups->getStats(); |
| 774 | if (const auto localTable = transaction->getLocalStorage()->getLocalTable(tableID)) { |
| 775 | const auto localStats = localTable->cast<LocalNodeTable>().getStats(); |
| 776 | stats.merge(localStats); |
| 777 | } |
| 778 | return stats; |
| 779 | } |
| 780 | |
| 781 | bool NodeTable::isVisible(const Transaction* transaction, offset_t offset) const { |
| 782 | if (transaction && transaction->isUnCommitted(tableID, offset)) { |
no test coverage detected