From 15e5e4fdf62bf64d9a044b28ac80f8d9c76b3cda Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Sun, 19 Nov 2017 15:34:09 +0900 Subject: [PATCH] delete shm file after converting to DELETE journal mode --- Sources/SQLiteStore.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SQLiteStore.swift b/Sources/SQLiteStore.swift index be95dfb..7abebde 100644 --- a/Sources/SQLiteStore.swift +++ b/Sources/SQLiteStore.swift @@ -219,6 +219,7 @@ public final class SQLiteStore: LocalStorage { options: [NSSQLitePragmasOption: ["journal_mode": "DELETE"]] ) } + _ = try? FileManager.default.removeItem(atPath: "\(self.fileURL.path)-shm") } /**