Skip to content

Commit

Permalink
sqlite locking
Browse files Browse the repository at this point in the history
* add message if locking is disabled
  • Loading branch information
metzm committed Sep 10, 2021
1 parent 903a334 commit e7709b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/drivers/sqlite/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ int db__driver_open_database(dbHandle * handle)
if (sprintf(name3, "file:%s?nolock=1", name2) < 0) {
return DB_FAILED;
}
G_important_message(_("Disabling SQLite locking"));
}
else {
G_warning(_("The sqlite config option '%s' is not supported"),
Expand Down Expand Up @@ -181,6 +182,7 @@ int db__driver_create_database(dbHandle *handle)
if (sprintf(name2, "file:%s?nolock=1", name) < 0) {
return DB_FAILED;
}
G_important_message(_("Disabling SQLite locking"));
}
else {
G_warning(_("The sqlite config option '%s' is not supported"),
Expand Down

0 comments on commit e7709b2

Please sign in to comment.