Keep Windows intent and diagnostic databases read-only with rusqlite 0.41
This commit is contained in:
@@ -237,7 +237,7 @@ impl Store {
|
||||
pub fn open_empty_history_snapshot() -> Result<Self> {
|
||||
let store = Self::open(false)?;
|
||||
ensure!(
|
||||
store.db.is_readonly(rusqlite::DatabaseName::Main)?,
|
||||
store.db.is_readonly(rusqlite::MAIN_DB)?,
|
||||
"read-only intent snapshot required"
|
||||
);
|
||||
store
|
||||
|
||||
Reference in New Issue
Block a user