Skip to content
Snippets Groups Projects
Commit e26892d5 authored by Krzysztof Leśniak's avatar Krzysztof Leśniak Committed by Dan Notestein
Browse files

Fix calculating rshares

In previous commit vote notifications were changed to be inserted after
processing each block. But in massive sync rshares for posts were
calculated only at the end of massive sync.
This resulted in vote notifications to not be inserted, because score
were always calculated as 0.
To fix this, calculate rshares for modified posts after processing each
block.
`hive_posts` are now modified in posts and votes indexer. An advisory
lock was added to synchronise, because deadlock was detected by postgres
failing transactions.
parent e1acb85c
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !863. Comments created here will be created in the context of that merge request.
Showing
with 28 additions and 73 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment