Skip to content

Commit

Permalink
ARTEMIS-3327 Removing unecessary block operation on journal append re…
Browse files Browse the repository at this point in the history
…cord
  • Loading branch information
clebertsuconic authored and jbertram committed Jul 6, 2021
1 parent b5f772e commit 5c051e9
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,6 @@ public void appendAddRecord(final long id,
throw ActiveMQJournalBundle.BUNDLE.recordLargerThanStoreMax(addRecordEncodeSize, maxRecordSize);
}

final SimpleFuture<Boolean> result = newSyncAndCallbackResult(sync, callback);
appendExecutor.execute(new Runnable() {
@Override
public void run() {
Expand All @@ -952,21 +951,16 @@ public void run() {
", usedFile = " +
usedFile);
}
result.set(true);
} catch (ActiveMQShutdownException e) {
result.fail(e);
logger.error("appendAddRecord:" + e, e);
} catch (Throwable e) {
result.fail(e);
setErrorCondition(callback, null, e);
logger.error("appendAddRecord::" + e, e);
} finally {
journalLock.readLock().unlock();
}
}
});

result.get();
}


Expand Down

0 comments on commit 5c051e9

Please sign in to comment.