Fixed write of SWITCH_SEGMENT_RECORD at the end of a segment file - Fixes
@@ -2626,7 +2626,7 @@ public class FileWriteAheadLogManager extends GridCacheSharedManagerAdapter impl
ByteBuffer buf = seg.buffer();
- if (buf == null || (stop.get() && rec.type() != SWITCH_SEGMENT_RECORD))
+ if (buf == null)
return null; // Can not write to this segment, need to switch to the next one.
ptr = new FileWALPointer(idx, pos, rec.size());
