changeset 277:f3a74d0e54f5 Implementation_of_communication

change DifferenceTransactionManager
author tatsuki
date Sat, 17 Dec 2016 19:50:23 +0900
parents ec617f187ce2
children 45e9d506270b
files src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/transaction/manager/DifferenceTransactionManager.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/transaction/manager/DifferenceTransactionManager.java	Fri Dec 16 02:55:11 2016 +0900
+++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/transaction/manager/DifferenceTransactionManager.java	Sat Dec 17 19:50:23 2016 +0900
@@ -77,13 +77,13 @@
             return DefaultEither.newA(ADD_NEW_CHILD_ERROR);
         TreeNode root = tip.getRoot();
         InterfaceTraverser traverser = new InterfaceTraverser(root, true);
-        traverser.createIndex();
         TreeContext newTreeContext = new DifferenceTreeContext(root, newUnDefineNode, tip, list, uuid, _treeName, nextRevision, traverser);
 
         if (repository.compareAndSet(newTreeContext.prev(), newTreeContext)) {
             either = replaceUnDefineNode(subTreeRoot);
             if (either.isA())
                 return DefaultEither.newA(either.a());
+            traverser.createIndex();
             TransactionManager txManager = new DifferenceTransactionManager(writer, newTreeContext, repository, uuid);
             return DefaultEither.newB(txManager);
         }