We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 3b47116 commit 84d87a7Copy full SHA for 84d87a7
src/providers/wfs/qgswfsshareddata.cpp
@@ -213,9 +213,10 @@ bool QgsWFSSharedData::createCache()
213
{
214
Q_ASSERT( mCacheDbname.isEmpty() );
215
216
- static int sTmpCounter = 0;
217
- ++sTmpCounter;
218
- mCacheDbname = QDir( QgsWFSUtils::acquireCacheDirectory() ).filePath( QStringLiteral( "wfs_cache_%1.sqlite" ).arg( sTmpCounter ) );
+ static QAtomicInt sTmpCounter = 0;
+ int tmpCounter = ++sTmpCounter;
+ mCacheDbname = QDir( QgsWFSUtils::acquireCacheDirectory() ).filePath( QStringLiteral( "wfs_cache_%1.sqlite" ).arg( tmpCounter ) );
219
+ Q_ASSERT( !QFile::exists( mCacheDbname ) );
220
221
QgsFields cacheFields;
222
Q_FOREACH ( const QgsField &field, mFields )
0 commit comments