From d44dd6e78cb062acca4c725625a12f23bca1a310 Mon Sep 17 00:00:00 2001 From: Tom Dellmann Date: Fri, 11 Aug 2023 13:05:02 +0100 Subject: [PATCH] Rollback switch re-ordering --- .../openhft/chronicle/queue/impl/single/StoreTailer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/queue/impl/single/StoreTailer.java b/src/main/java/net/openhft/chronicle/queue/impl/single/StoreTailer.java index f30b7a26ea..9d2b0dac4a 100644 --- a/src/main/java/net/openhft/chronicle/queue/impl/single/StoreTailer.java +++ b/src/main/java/net/openhft/chronicle/queue/impl/single/StoreTailer.java @@ -468,15 +468,15 @@ private boolean inACycle2(boolean includeMetaData, Wire wire, Bytes bytes) th bytes.readLimitToCapacity(); switch (wire.readDataHeader(includeMetaData)) { - case DATA: - context.metaData(false); - break; case NONE: // no more polling - appender will always write (or recover) EOF return false; case META_DATA: context.metaData(true); break; + case DATA: + context.metaData(false); + break; case EOF: throw EOF_EXCEPTION; }