tkalkirill commented on code in PR #1673:
URL: https://github.com/apache/ignite-3/pull/1673#discussion_r1109536947
##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/mv/VersionChain.java:
##########
@@ -131,7 +131,29 @@ public boolean hasCommittedVersions() {
return newestCommittedLink() != NULL_LINK;
}
- /** {@inheritDoc} */
+ /**
+ * Returns {@code true} if there is a link to the next version.
+ */
+ public boolean hasNextLink() {
+ return nextLink != NULL_LINK;
+ }
+
+ /**
+ * Returns {@code true} if there is a link to the head version.
+ */
+ public boolean hasHeadLink() {
+ return headLink != NULL_LINK;
+ }
+
+ /**
+ * Creates a copy of the version chain with new next link.
+ *
+ * @param nextLink New next link.
+ */
+ public VersionChain setNextLink(long nextLink) {
Review Comment:
Fix it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]