tephra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtyim <...@git.apache.org>
Subject [GitHub] incubator-tephra pull request #23: [Tephra-201] Store checkpoints in in-prog...
Date Thu, 08 Dec 2016 08:16:30 GMT
Github user chtyim commented on a diff in the pull request:

    --- Diff: tephra-core/src/main/java/org/apache/tephra/TransactionManager.java ---
    @@ -917,6 +933,15 @@ private void doCommit(long transactionId, long writePointer, Set<ChangeId>
             invalidArray = invalid.toLongArray();
             LOG.info("Tx invalid list: removed committed tx {}", transactionId);
    +    } else {
    +      long[] checkpointPointers = previous.getCheckpointWritePointers().toLongArray();
    --- End diff --
    Can it be just operating on the `LongArrayList` returned by the `getCheckpointWritePointers()`
method instead of copying it to a new `long[]`?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message