fix database flushing issue related to parallel read access to leveldb/sqlite #395

Closed
opened 2020-10-07 17:08:01 +02:00 by kauffj · 2 comments
kauffj commented 2020-10-07 17:08:01 +02:00 (Migrated from github.com)
No description provided.
kauffj commented 2020-10-12 22:39:01 +02:00 (Migrated from github.com)

idea / hope was that we could force flushing to happen when writes happen (or more frequently)

idea / hope was that we could force flushing to happen when writes happen (or more frequently)
shyba commented 2020-10-21 19:54:39 +02:00 (Migrated from github.com)

From my post on Slack:

Using @bvbfan branch block_info_fix:

sqlite> select hex(hash),status from block_info where height =849954;
8B59A67722E7038A944AE1AC81F26E8D82991ECF09FB51C4A0F4BD2271EFA281|189
48F6E69D8CC8D50B1264F321E4E1190142E68A81D979B01457CA409E0F52783F|157

Instead of 2 blocks with flag 157 we get the correct one at 157 and the forked at 189

From my post on Slack: Using @bvbfan branch [block_info_fix](https://github.com/lbryio/lbrycrd/tree/block_info_fix): ``` sqlite> select hex(hash),status from block_info where height =849954; 8B59A67722E7038A944AE1AC81F26E8D82991ECF09FB51C4A0F4BD2271EFA281|189 48F6E69D8CC8D50B1264F321E4E1190142E68A81D979B01457CA409E0F52783F|157 ``` Instead of 2 blocks with flag 157 we get the correct one at 157 and the forked at 189
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#395
No description provided.