Skip to content

Commit 6609e65

Browse files
committed
GPKG: do not run vacuum after raster deletion
See my previous commit, for consistency we do not run VACUUM automatically when a raster is deleted. A menu item allows the user to run VACUUM manually A possible UX improvement would be to add a button to the success dialog that offers the user the option to run VACUUM after a successful layer deletion.
1 parent b51cb21 commit 6609e65

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/providers/ogr/qgsgeopackagedataitems.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -438,16 +438,6 @@ bool QgsGeoPackageCollectionItem::deleteGeoPackageRasterLayer( const QString &ur
438438
);
439439
sqlite3_free( sql );
440440
}
441-
// Vacuum
442-
{
443-
( void )sqlite3_exec(
444-
database.get(), /* An open database */
445-
"VACUUM", /* SQL to be evaluated */
446-
nullptr, /* Callback function */
447-
nullptr, /* 1st argument to callback */
448-
nullptr /* Error msg written here */
449-
);
450-
}
451441

452442
if ( status == SQLITE_OK )
453443
{

0 commit comments

Comments
 (0)