| 793 | } |
| 794 | |
| 795 | bool NodeTable::isVisibleNoLock(const Transaction* transaction, offset_t offset) const { |
| 796 | if (transaction && transaction->isUnCommitted(tableID, offset)) { |
| 797 | const auto localTable = transaction->getLocalStorage()->getLocalTable(tableID); |
| 798 | DASSERT(localTable); |
| 799 | return localTable->cast<LocalNodeTable>().isVisible(transaction, offset); |
| 800 | } |
| 801 | auto [nodeGroupIdx, offsetInGroup] = StorageUtils::getNodeGroupIdxAndOffsetInChunk(offset); |
| 802 | if (nodeGroupIdx >= nodeGroups->getNumNodeGroupsNoLock()) { |
| 803 | return false; |
| 804 | } |
| 805 | const auto* nodeGroup = getNodeGroupNoLock(nodeGroupIdx); |
| 806 | return nodeGroup->isVisibleNoLock(transaction, offsetInGroup); |
| 807 | } |
| 808 | |
| 809 | PrimaryKeyIndex* NodeTable::tryGetPKIndex() const { |
| 810 | const auto index = getIndex(PrimaryKeyIndex::DEFAULT_NAME); |
nothing calls this directly
no test coverage detected