This is an automated email from the ASF dual-hosted git repository.

ifesdjeen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 55bd05a0 Fix CompactionIteratorTest
55bd05a0 is described below

commit 55bd05a0612acbec29a1bf2ee0cb11d5ef754200
Author: Alex Petrov <[email protected]>
AuthorDate: Wed Aug 28 12:01:53 2024 +0200

    Fix CompactionIteratorTest
    
    Patch by Alex Petrov; reviewed by David Capwell for CASSANDRA-19865
---
 accord-core/src/main/java/accord/primitives/TxnId.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/accord-core/src/main/java/accord/primitives/TxnId.java 
b/accord-core/src/main/java/accord/primitives/TxnId.java
index 63824421..8c3e9c5f 100644
--- a/accord-core/src/main/java/accord/primitives/TxnId.java
+++ b/accord-core/src/main/java/accord/primitives/TxnId.java
@@ -21,6 +21,8 @@ package accord.primitives;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
+import com.google.common.annotations.VisibleForTesting;
+
 import accord.local.Node.Id;
 import accord.primitives.Routable.Domain;
 import accord.primitives.Txn.Kind;
@@ -104,6 +106,12 @@ public class TxnId extends Timestamp
         return new TxnId(epoch(), hlc(), kind, domain(), node);
     }
 
+    @VisibleForTesting
+    public TxnId as(Kind kind, Domain domain)
+    {
+        return new TxnId(epoch(), hlc(), kind, domain, node);
+    }
+
     public TxnId withEpoch(long epoch)
     {
         return epoch == epoch() ? this : new TxnId(epoch, hlc(), flags(), 
node);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to