Extend huge local cache map crash annotations.

This commit is contained in:
John Preston 2018-03-26 00:56:40 +04:00
parent d4bd8862bd
commit ce9445287c

View File

@ -2205,10 +2205,6 @@ void _writeMap(WriteMapWhen when) {
EncryptedDescriptor mapData(mapSize);
if (mapSize > 30 * 1024 * 1024) {
CrashReports::ClearAnnotation("MapSize");
}
if (!_draftsMap.isEmpty()) {
mapData.stream << quint32(lskDraft) << quint32(_draftsMap.size());
for (DraftsMap::const_iterator i = _draftsMap.cbegin(), e = _draftsMap.cend(); i != e; ++i) {
@ -2276,6 +2272,10 @@ void _writeMap(WriteMapWhen when) {
map.writeEncrypted(mapData);
_mapChanged = false;
if (mapSize > 30 * 1024 * 1024) {
CrashReports::ClearAnnotation("MapSize");
}
}
} // namespace