mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user