Pre-emptive hpfs sync responses. (#299)

Hpfs sync requester reports its own filesystem state to the responder. Responder uses that information to pre-emptively send additional filesystem data the requester may need.
This commit is contained in:
Ravin Perera
2021-05-01 08:27:42 +05:30
committed by GitHub
parent 3381608afd
commit 4f82afe5b1
12 changed files with 1023 additions and 424 deletions

View File

@@ -407,7 +407,7 @@ namespace consensus
<< " state:" << cp.state_hash
<< " patch:" << cp.patch_hash
<< " lps:" << cp.last_primary_shard_id
<< " lbs:" << cp.last_raw_shard_id
<< " lrs:" << cp.last_raw_shard_id
<< " [from:" << ((cp.pubkey == conf::cfg.node.public_key) ? "self" : util::to_hex(cp.pubkey).substr(2, 10)) << "]"
<< "(" << (cp.recv_timestamp > cp.sent_timestamp ? (cp.recv_timestamp - cp.sent_timestamp) : 0) << "ms)";
@@ -642,8 +642,8 @@ namespace consensus
<< " ts:" << p.time
<< " state:" << p.state_hash
<< " patch:" << p.patch_hash
<< " last_primary_shard_id:" << p.last_primary_shard_id
<< " last_raw_shard_id:" << p.last_raw_shard_id;
<< " lps:" << p.last_primary_shard_id
<< " lrs:" << p.last_raw_shard_id;
}
/**