Skip to content

Commit

Permalink
Master conversations use locks delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
tinwelint authored and lutovich committed Jul 21, 2016
1 parent ee246ef commit 2703374
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,8 @@ private void commit() throws TransactionFailureException
}
}

context.init( locks.delegate() );
locks.prepare();
context.init( locks.delegate() );
prepareRecordChangesFromTransactionState();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
*/
public class DefaultConversationSPI implements ConversationSPI
{
private Locks locks;
private JobScheduler jobScheduler;
private final Locks locks;
private final JobScheduler jobScheduler;

public DefaultConversationSPI( Locks locks, JobScheduler jobScheduler )
{
Expand All @@ -41,13 +41,12 @@ public DefaultConversationSPI( Locks locks, JobScheduler jobScheduler )
@Override
public Locks.Client acquireClient()
{
return locks.newClient();
return locks.newClient().delegate();
}

@Override
public JobScheduler.JobHandle scheduleRecurringJob( JobScheduler.Group group, long interval, Runnable job )
{
return jobScheduler.scheduleRecurring( group, job, interval, TimeUnit.MILLISECONDS);
}

}

0 comments on commit 2703374

Please sign in to comment.