ARTEMIS-3327 Removing unecessary block operation on journal append record

This commit is contained in:
Clebert Suconic 2021-07-06 14:19:11 -04:00 committed by Justin Bertram
parent b5f772e9e5
commit 5c051e9832
1 changed files with 0 additions and 6 deletions

View File

@ -935,7 +935,6 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
throw ActiveMQJournalBundle.BUNDLE.recordLargerThanStoreMax(addRecordEncodeSize, maxRecordSize);
}
final SimpleFuture<Boolean> result = newSyncAndCallbackResult(sync, callback);
appendExecutor.execute(new Runnable() {
@Override
public void run() {
@ -952,12 +951,9 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
", 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 {
@ -965,8 +961,6 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
}
}
});
result.get();
}