mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Extend huge local cache map crash annotations.
This commit is contained in:
parent
d4bd8862bd
commit
ce9445287c
1 changed files with 4 additions and 4 deletions
|
@ -2205,10 +2205,6 @@ void _writeMap(WriteMapWhen when) {
|
||||||
|
|
||||||
EncryptedDescriptor mapData(mapSize);
|
EncryptedDescriptor mapData(mapSize);
|
||||||
|
|
||||||
if (mapSize > 30 * 1024 * 1024) {
|
|
||||||
CrashReports::ClearAnnotation("MapSize");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_draftsMap.isEmpty()) {
|
if (!_draftsMap.isEmpty()) {
|
||||||
mapData.stream << quint32(lskDraft) << quint32(_draftsMap.size());
|
mapData.stream << quint32(lskDraft) << quint32(_draftsMap.size());
|
||||||
for (DraftsMap::const_iterator i = _draftsMap.cbegin(), e = _draftsMap.cend(); i != e; ++i) {
|
for (DraftsMap::const_iterator i = _draftsMap.cbegin(), e = _draftsMap.cend(); i != e; ++i) {
|
||||||
|
@ -2276,6 +2272,10 @@ void _writeMap(WriteMapWhen when) {
|
||||||
map.writeEncrypted(mapData);
|
map.writeEncrypted(mapData);
|
||||||
|
|
||||||
_mapChanged = false;
|
_mapChanged = false;
|
||||||
|
|
||||||
|
if (mapSize > 30 * 1024 * 1024) {
|
||||||
|
CrashReports::ClearAnnotation("MapSize");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue