ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject ignite git commit: IGNITE-9049 Fixed write of SWITCH_SEGMENT_RECORD at the end of a segment file - Fixes #4401.
Date Mon, 23 Jul 2018 15:18:36 GMT
Repository: ignite
Updated Branches:
  refs/heads/master 78e0bb7ef -> 713a4289f


IGNITE-9049 Fixed write of SWITCH_SEGMENT_RECORD at the end of a segment file - Fixes #4401.

Signed-off-by: Alexey Goncharuk <alexey.goncharuk@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/713a4289
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/713a4289
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/713a4289

Branch: refs/heads/master
Commit: 713a4289f206b14e86bd76de1976d9f9e602eff2
Parents: 78e0bb7
Author: Dmitriy Govorukhin <dmitriy.govorukhin@gmail.com>
Authored: Mon Jul 23 18:01:37 2018 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Mon Jul 23 18:01:37 2018 +0300

----------------------------------------------------------------------
 .../processors/cache/persistence/wal/FileWriteAheadLogManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/713a4289/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/FileWriteAheadLogManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/FileWriteAheadLogManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/FileWriteAheadLogManager.java
index 78ab9ac..712dca0 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/FileWriteAheadLogManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/FileWriteAheadLogManager.java
@@ -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());


Mime
View raw message