|
|
@ -4924,13 +4924,26 @@ flail: |
|
|
|
} |
|
|
|
} |
|
|
|
k_list_transfer_to_head(new_markersummary_store, markersummary_store); |
|
|
|
k_list_transfer_to_head(new_markersummary_store, markersummary_store); |
|
|
|
|
|
|
|
|
|
|
|
ks_item = STORE_HEAD_NOLOCK(new_keysummary_store); |
|
|
|
if (!key_update) { |
|
|
|
while (ks_item) { |
|
|
|
ks_item = STORE_HEAD_NOLOCK(new_keysummary_store); |
|
|
|
// move the new keysummaries into the tree
|
|
|
|
while (ks_item) { |
|
|
|
add_to_ktree(keysummary_root, ks_item); |
|
|
|
// move the new keysummaries into the tree
|
|
|
|
ks_item = ks_item->next; |
|
|
|
add_to_ktree(keysummary_root, ks_item); |
|
|
|
|
|
|
|
ks_item = ks_item->next; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
k_list_transfer_to_head(new_keysummary_store, |
|
|
|
|
|
|
|
keysummary_store); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
/* Discard the new data to save RAM,
|
|
|
|
|
|
|
|
* since we don't actually use it in key_update */ |
|
|
|
|
|
|
|
ks_item = STORE_HEAD_NOLOCK(new_keysummary_store); |
|
|
|
|
|
|
|
while (ks_item) { |
|
|
|
|
|
|
|
free_keysummary_data(ks_item); |
|
|
|
|
|
|
|
ks_item = ks_item->next; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
k_list_transfer_to_head(new_keysummary_store, |
|
|
|
|
|
|
|
keysummary_free); |
|
|
|
} |
|
|
|
} |
|
|
|
k_list_transfer_to_head(new_keysummary_store, keysummary_store); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* For normal shift processing this wont be very quick
|
|
|
|
/* For normal shift processing this wont be very quick
|
|
|
|
* so it will be a 'long' LOCK */ |
|
|
|
* so it will be a 'long' LOCK */ |
|
|
@ -4996,7 +5009,8 @@ flail: |
|
|
|
nonblank ? EMPTY : " ONLY BLANK KEYS"); |
|
|
|
nonblank ? EMPTY : " ONLY BLANK KEYS"); |
|
|
|
|
|
|
|
|
|
|
|
// This should never happen
|
|
|
|
// This should never happen
|
|
|
|
if (kshareacc != (shareacc << 1) || kdiffacc != (diffacc << 1)) { |
|
|
|
if (!key_update && (kshareacc != (shareacc << 1) || |
|
|
|
|
|
|
|
kdiffacc != (diffacc << 1))) { |
|
|
|
LOGERR("%s() CODE BUG: keysummary share/diff counts " |
|
|
|
LOGERR("%s() CODE BUG: keysummary share/diff counts " |
|
|
|
"are wrong!", shortname); |
|
|
|
"are wrong!", shortname); |
|
|
|
} |
|
|
|
} |
|
|
|