mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-28 05:12:14 +00:00
875acb6cfb
got_sdr_rep_info computed the record count as ($returnd[1] + $returnd[2]) << 8, because Perl gives + a higher precedence than <<. The count names the SDR cache of a BMC. Counts whose two bytes have the same sum, such as 39 and 294, shared a cache. A BMC that went from one count to the other reused the old SDR. Shift only the MS byte, and raise the SDR cache version to 5. A cache file from the old encoding can have the name of a new count: the file for 257 records is named 512. The version makes each BMC model read its SDR again once after the update.