echo "---- host $host osd $osd dev $dev ----"
ls -al $dev
ssh cosd$host cd ceph/src \; ./cosd --mkfs_for_osd $osd $dev # --osd_auto_weight 1
- ssh cosd$host cd ceph/src \; ./cosd $dev -d --debug_ms 1 --debug_osd 20 --debug_filestore 10
+ ssh cosd$host cd ceph/src \; ./cosd $dev -d --debug_ms 1 --debug_osd 20 --debug_filestore 10 --debug_ebofs 30 --osd_heartbeat_grace 300
# ssh cosd$host cd ceph/src \; valgrind --leak-check-full --show-reachable-yes ./cosd $dev --debug_ms 1 --debug_osd 20 --debug_filestore 10 1>out/o$osd \&
done
done
map<int, utime_t> stamps;
stamps.swap(heartbeat_from_stamp);
+ set<int> old_heartbeat_from;
+ old_heartbeat_from.swap(heartbeat_from);
+
// build heartbeat to/from set
heartbeat_to.clear();
heartbeat_from.clear();
int p = pg->acting[i]; // peer
assert(p != whoami);
heartbeat_from.insert(p);
- if (stamps.count(p))
+ if (stamps.count(p) && old_heartbeat_from.count(p)) // have a stamp _AND_ i'm not new to the set
heartbeat_from_stamp[p] = stamps[p];
}
}