Skip to content

Commit 9ebe16d

Browse files
authored
Merge pull request #1742 from tursodatabase/lucio/ignore-dirty-env-var
sqld: add LIBSQL_IGNORE_DIRTY_LOG
2 parents 8987c21 + c9dfe49 commit 9ebe16d

File tree

1 file changed

+6
-1
lines changed
  • libsql-server/src/namespace/configurator

1 file changed

+6
-1
lines changed

libsql-server/src/namespace/configurator/helpers.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ pub(super) async fn make_primary_connection_maker(
6363
let mut is_dirty = {
6464
let sentinel_path = db_path.join(".sentinel");
6565
if sentinel_path.try_exists()? {
66-
true
66+
if std::env::var("LIBSQL_IGNORE_DIRTY_LOG").is_ok() {
67+
tracing::warn!("ignoring dirty log");
68+
false
69+
} else {
70+
true
71+
}
6772
} else {
6873
tokio::fs::File::create(&sentinel_path).await?;
6974
false

0 commit comments

Comments
 (0)