MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / isVisibleNoLock

Method isVisibleNoLock

src/storage/table/node_group.cpp:706–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706bool NodeGroup::isVisibleNoLock(const Transaction* transaction, row_idx_t rowIdxInGroup) const {
707 const auto* chunkedGroup = findChunkedGroupFromRowIdxNoLock(rowIdxInGroup);
708 if (!chunkedGroup) {
709 return false;
710 }
711 const auto rowIdxInChunkedGroup = rowIdxInGroup - chunkedGroup->getStartRowIdx();
712 return !chunkedGroup->isDeleted(transaction, rowIdxInChunkedGroup) &&
713 chunkedGroup->isInserted(transaction, rowIdxInChunkedGroup);
714}
715
716bool NodeGroup::isDeleted(const Transaction* transaction, offset_t offsetInGroup) const {
717 const auto lock = chunkedGroups.lock();

Callers 1

buildIfNeededMethod · 0.45

Calls 3

getStartRowIdxMethod · 0.80
isDeletedMethod · 0.45
isInsertedMethod · 0.45

Tested by

no test coverage detected