Persisting hpfs log responses to the hpfs (#291)

Fixing the in memory raw shard hash update.
Passing the seq_no of index update to verify that the index records are consistent.
Restart rw session after completing last primary shard sync.
Fixed issue in fs read write by multiple threads.
Hpfs log sync modifications.
This commit is contained in:
Chalith Desaman
2021-04-16 20:06:20 +05:30
committed by GitHub
parent 2283d2bf89
commit 05e8077e5b
14 changed files with 157 additions and 114 deletions

View File

@@ -213,7 +213,7 @@ namespace msg::fbuf::p2pmsg
{
const auto &msg = *mi.p2p_msg->content_as_HpfsLogRequest();
p2p::hpfs_log_request log_record;
log_record.target_record_id = flatbuf_seqhash_to_seqhash(msg.target_record_id());
log_record.target_seq_no = msg.target_seq_no();
log_record.min_record_id = flatbuf_seqhash_to_seqhash(msg.min_record_id());
return log_record;
}
@@ -425,7 +425,7 @@ namespace msg::fbuf::p2pmsg
{
const auto msg = CreateHpfsLogRequest(
builder,
seqhash_to_flatbuf_seqhash(builder, hpfs_log_request.target_record_id),
hpfs_log_request.target_seq_no,
seqhash_to_flatbuf_seqhash(builder, hpfs_log_request.min_record_id));
create_p2p_msg(builder, P2PMsgContent_HpfsLogRequest, msg.Union());