diff options
| author | Mårten Nordheim <marten.nordheim@qt.io> | 2025-07-29 13:57:37 +0200 |
|---|---|---|
| committer | Mårten Nordheim <marten.nordheim@qt.io> | 2025-08-02 08:29:47 +0200 |
| commit | 27f939da8fa08c75376fd0b009d83aafc8e04bc9 (patch) | |
| tree | 57d87f83ba8bb987ae7374a06d84eaa8c54bd57c /src/corelib/thread/qthreadpool.cpp | |
| parent | 99e735e991865a520bfc7032ea2190c557a59004 (diff) | |
Http: Remove incomplete cache-objects on destruction
Most commonly this would be a file, by way of the network disk cache.
The switch to use QSaveFile in the network disk cache in
e5f295c8a458dcd336f7cf3768ca62aded69e659 exposed the issue because
the leftover file objects were no longer deleted during
the cache trimming, so the handles were left open even if we
deleted the file.
The real issue, however, is that we did not notify the cache
that we were not going to complete the cache object, thus closing
the file object and deleting the uncommitted file.
That issue was probably introduced as part of
6f25051536c1636688a0a0939196007aac34676d.
Pick-to: 6.10 6.9 6.8 6.5
Fixes: QTBUG-135641
Change-Id: I4c185e4d6e44029e221e69e2ef7135b3710f1069
Reviewed-by: Jonas Kvinge <jonas@jkvinge.net>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/thread/qthreadpool.cpp')
0 files changed, 0 insertions, 0 deletions
