aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 784837b..74d5a21 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -135,6 +135,7 @@ async fn cmd_authenticate_cookie(matches: &ArgMatches<'_>, cfg: Config) -> Resul
if !repo.is_empty() && !conn.exists(&redis_key).await? {
let sql_conn = SqliteConnectOptions::from_str(cfg.get_database_location())?
.read_only(true)
+ .immutable(true)
.disable_statement_logging()
.connect()
.await;
@@ -378,6 +379,7 @@ async fn cmd_upgrade_database(cfg: Config) -> Result<()> {
let mut origin_conn = SqliteConnectOptions::from_str(v2_path.as_path().to_str().unwrap())?
.read_only(true)
+ .immutable(true)
.connect()
.await?;
@@ -529,6 +531,7 @@ async fn cmd_list_repos_acl(arg_matches: &ArgMatches<'_>, cfg: Config) -> Result
let mut conn = SqliteConnectOptions::from_str(cfg.get_database_location())?
.read_only(true)
+ .immutable(true)
.connect()
.await?;