diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-07-06 23:50:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-06 23:50:06 +0200 |
| commit | 0dbc294836bbf1f11e370efeeae0904d3bb099e0 (patch) | |
| tree | cf98c2eb6bfb53666392f8fbe52f1007fc72e4e7 /Emby.Server.Implementations/Data/BaseSqliteRepository.cs | |
| parent | 3b49c1bac01d73eb3f3d6620370d266d23026790 (diff) | |
Move VACUUM command to fix merge error
This fixes a syntax error.
Diffstat (limited to 'Emby.Server.Implementations/Data/BaseSqliteRepository.cs')
| -rw-r--r-- | Emby.Server.Implementations/Data/BaseSqliteRepository.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs b/Emby.Server.Implementations/Data/BaseSqliteRepository.cs index 919453d2a..010ad6384 100644 --- a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs +++ b/Emby.Server.Implementations/Data/BaseSqliteRepository.cs @@ -124,6 +124,9 @@ namespace Emby.Server.Implementations.Data } WriteConnection.Execute("PRAGMA temp_store=" + (int)TempStore); + + // Configuration and pragmas can affect VACUUM so it needs to be last. + WriteConnection.Execute("VACUUM"); return new ManagedConnection(WriteConnection, WriteLock); } @@ -170,8 +173,6 @@ namespace Emby.Server.Implementations.Data columnNames.Add(name); } } - // Configuration and pragmas can affect VACUUM so it needs to be last. - queries.Add("VACUUM"); return columnNames; } |
