You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2015/12/15 00:14:39 UTC

marmotta git commit: bug fix

Repository: marmotta
Updated Branches:
  refs/heads/develop 29e1bba20 -> c30dbf0fd


bug fix


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

Branch: refs/heads/develop
Commit: c30dbf0fd23fc8b3d46b0b8c30ce93f5a4348b29
Parents: 29e1bba
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Tue Dec 15 00:16:18 2015 +0100
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Tue Dec 15 00:16:18 2015 +0100

----------------------------------------------------------------------
 libraries/ostrich/backend/persistence/leveldb_persistence.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/c30dbf0f/libraries/ostrich/backend/persistence/leveldb_persistence.cc
----------------------------------------------------------------------
diff --git a/libraries/ostrich/backend/persistence/leveldb_persistence.cc b/libraries/ostrich/backend/persistence/leveldb_persistence.cc
index da767b5..7e487f2 100644
--- a/libraries/ostrich/backend/persistence/leveldb_persistence.cc
+++ b/libraries/ostrich/backend/persistence/leveldb_persistence.cc
@@ -459,8 +459,10 @@ void LevelDBPersistence::GetStatements(
 
     bool cbsuccess = true;
     for(auto it = GetStatements(pattern); cbsuccess && it->hasNext(); ++(*it)) {
-        cbsuccess = callback(**it);
-        count++;
+        if (matches(**it, pattern)) {
+            cbsuccess = callback(**it);
+            count++;
+        }
     }
 
     DLOG(INFO) << "Get statements done (count=" << count << ", time="