Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit 204f9d2

Browse files
committed
Fix gcc compilation
1 parent cb6a0b8 commit 204f9d2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/cache_manager.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ struct UnqliteCacheDriver : public ICacheStore
9797

9898
void Write(const std::string& key, const std::string& value) override
9999
{
100-
static int commit_counter = 0;
101-
102100
int ret;
103-
while(ret = unqlite_kv_store(database_, key.data(), key.size(), value.data(), value.size()) == UNQLITE_BUSY);
101+
while((ret = unqlite_kv_store(database_, key.data(), key.size(), value.data(), value.size())) == UNQLITE_BUSY);
104102
if (ret != UNQLITE_OK)
105103
{
106104
UnqliteHandleResult("unqlite_kv_store", database_, ret);

src/import_pipeline.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ struct TestStore : public ICacheStore
785785

786786
void Write(const std::string& key, const std::string& value)
787787
{
788-
elements_.insert_or_assign(key, value);
788+
elements_[key] = value;
789789
}
790790

791791
~TestStore()

0 commit comments

Comments
 (0)