You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2016/08/26 09:16:29 UTC

[25/50] ignite git commit: IGNITE-3694: IGFS: Remove invalid assertion in IgfsImpl.newBatch() method.

IGNITE-3694: IGFS: Remove invalid assertion in IgfsImpl.newBatch() method.


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

Branch: refs/heads/ignite-3443
Commit: 5b57fc04866677fbf1221a253fe28905dbfc2d7d
Parents: d399db9
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Mon Aug 22 17:16:45 2016 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Mon Aug 22 17:16:45 2016 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/processors/igfs/IgfsImpl.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5b57fc04/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
index 6707acc..c704e00 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
@@ -344,12 +344,8 @@ public final class IgfsImpl implements IgfsEx {
 
                     if (prevBatch == null)
                         break;
-                    else {
-                        assert prevBatch.finishing() :
-                            "File lock should prevent stream creation on a not-closed-yet file.";
-
+                    else
                         prevBatch.await();
-                    }
                 }
 
                 return batch;