Add shred version filters to Crds Accessors (#8027)

* Add shred version filters to Crds Accessors

* Adopt entrypoint shred_version if one isn't provided

(cherry picked from commit 64c42e28dc)
This commit is contained in:
Sagar Dhawan
2020-01-30 00:15:37 -08:00
committed by Michael Vines
parent 43659d7deb
commit 6818e68542
3 changed files with 66 additions and 5 deletions

View File

@@ -522,6 +522,8 @@ impl Archiver {
let mut contact_info = node_info.clone();
contact_info.tvu = "0.0.0.0:0".parse().unwrap();
contact_info.wallclock = timestamp();
// copy over the adopted shred_version from the entrypoint
contact_info.shred_version = cluster_info.read().unwrap().my_data().shred_version;
{
let mut cluster_info_w = cluster_info.write().unwrap();
cluster_info_w.insert_self(contact_info);