Repository: marmotta Updated Branches: refs/heads/develop 72bdf01af -> 6be5dc757
Ostrich: remove URI compression code, as it is currently not fully implemented Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/6be5dc75 Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/6be5dc75 Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/6be5dc75 Branch: refs/heads/develop Commit: 6be5dc757a993fa3465361cd8fc1f4a44507d8e0 Parents: 72bdf01 Author: Sebastian Schaffert <[email protected]> Authored: Sun Nov 20 14:16:04 2016 +0100 Committer: Sebastian Schaffert <[email protected]> Committed: Sun Nov 20 14:16:04 2016 +0100 ---------------------------------------------------------------------- libraries/ostrich/backend/persistence/leveldb_persistence.cc | 4 +--- libraries/ostrich/backend/persistence/rocksdb_persistence.cc | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/marmotta/blob/6be5dc75/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 55e8d91..a14542b 100644 --- a/libraries/ostrich/backend/persistence/leveldb_persistence.cc +++ b/libraries/ostrich/backend/persistence/leveldb_persistence.cc @@ -469,10 +469,8 @@ void LevelDBPersistence::AddStatement( Key key(stmt); - Statement encoded = stmt; - EncodeWellknownURI(&encoded); std::string buffer; - encoded.SerializeToString(&buffer); + stmt.SerializeToString(&buffer); char *k_spoc = key.Create(IndexTypes::SPOC); spoc.Put(leveldb::Slice(k_spoc, 4 * KEY_LENGTH), buffer); http://git-wip-us.apache.org/repos/asf/marmotta/blob/6be5dc75/libraries/ostrich/backend/persistence/rocksdb_persistence.cc ---------------------------------------------------------------------- diff --git a/libraries/ostrich/backend/persistence/rocksdb_persistence.cc b/libraries/ostrich/backend/persistence/rocksdb_persistence.cc index 1231285..8b3fccd 100644 --- a/libraries/ostrich/backend/persistence/rocksdb_persistence.cc +++ b/libraries/ostrich/backend/persistence/rocksdb_persistence.cc @@ -389,9 +389,7 @@ void RocksDBPersistence::AddStatement( DLOG(INFO) << "Adding statement " << stmt.DebugString(); std::string buffer; - Statement encoded = stmt; - EncodeWellknownURI(&encoded); - encoded.SerializeToString(&buffer); + stmt.SerializeToString(&buffer); Key key(stmt);
