Skip to content

Commit 3b47116

Browse files
committedJul 24, 2018
Debugging
1 parent 1a94727 commit 3b47116

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/providers/wfs/qgswfsshareddata.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ bool QgsWFSSharedData::createCache()
269269
// Copy the temporary database back to disk
270270
vsi_l_offset nLength = 0;
271271
GByte *pabyData = VSIGetMemFileBuffer( vsimemFilename.toStdString().c_str(), &nLength, TRUE );
272+
Q_ASSERT( !QFile::exists( mCacheDbname ) );
272273
VSILFILE *fp = VSIFOpenL( mCacheDbname.toStdString().c_str(), "wb " );
273274
if ( fp )
274275
{
@@ -340,6 +341,7 @@ bool QgsWFSSharedData::createCache()
340341
}
341342

342343
// Copy the in-memory template SpatiaLite DB into the target DB
344+
Q_ASSERT( !QFile::exists( mCacheDbname ) );
343345
QFile dbFile( mCacheDbname );
344346
if ( !dbFile.open( QIODevice::WriteOnly | QIODevice::Truncate ) )
345347
{

0 commit comments

Comments
 (0)
Please sign in to comment.