mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Merge pull request #1516 from jellyfin/EraYaN-vacuum-merge-fix
Move VACUUM command to fix merge error
This commit is contained in:
commit
f2a56fcd80
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue