Skip to content

Commit

Permalink
GPKG: fix issue with StartTransaction() causing features to be omitte…
Browse files Browse the repository at this point in the history
…d when creating background RTree (fixes qgis/QGIS#51188)
  • Loading branch information
rouault committed Dec 13, 2022
1 parent e8b2530 commit 3f5f622
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ogr/ogrsf_frmts/gpkg/ogrgeopackagetablelayer.cpp
Expand Up @@ -2868,6 +2868,9 @@ OGRErr OGRGeoPackageTableLayer::DeleteFeature(GIntBig nFID)

bool OGRGeoPackageTableLayer::DoJobAtTransactionCommit()
{
if( m_bAllowedRTreeThread )
return true;

bool ret = RunDeferredCreationIfNecessary() == OGRERR_NONE &&
RunDeferredSpatialIndexUpdate();
m_nCountInsertInTransaction = 0;
Expand Down

0 comments on commit 3f5f622

Please sign in to comment.