Skip to content

Commit

Permalink
Back porting BZ-1019378
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed Nov 6, 2013
1 parent 778b793 commit 7ab3587
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/org/hornetq/core/paging/impl/PagingStoreImpl.java
Expand Up @@ -908,6 +908,12 @@ else if (addressFullMessagePolicy == AddressFullMessagePolicy.BLOCK)
currentPageSize.addAndGet(bytesToWrite);
}

if (tx != null)
{
installPageTransaction(tx, listCtx);
tx.setWaitBeforeCommit(true);
}

currentPage.write(pagedMessage);

if (isTrace)
Expand All @@ -916,13 +922,6 @@ else if (addressFullMessagePolicy == AddressFullMessagePolicy.BLOCK)
" pageId=" + currentPage.getPageId());
}


if (tx != null)
{
installPageTransaction(tx, listCtx);
tx.setWaitBeforeCommit(true);
}
else
if (sync && tx == null)
{
sync();
Expand Down

0 comments on commit 7ab3587

Please sign in to comment.