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 authored and github-actions[bot] committed Dec 13, 2022
1 parent 532dfdc commit 32d9462
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ogr/ogrsf_frmts/gpkg/ogrgeopackagetablelayer.cpp
Expand Up @@ -2836,6 +2836,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 32d9462

Please sign in to comment.