-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,27 @@ | |
using System.Security.Cryptography; | ||
using System.Threading; | ||
|
||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Tgstation.Server.Host.IO | ||
{ | ||
/// <inheritdoc /> | ||
sealed class SynchronousIOManager : ISynchronousIOManager | ||
{ | ||
/// <summary> | ||
/// The <see cref="ILogger"/> for the <see cref=""/> | ||
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Release)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Tests (Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Run CodeQL
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Run CodeQL
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Run CodeQL
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Run CodeQL
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Run CodeQL
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Run CodeQL
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Release)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Tests (Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (MySql, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Build Windows Installer .exe
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Build Windows Installer .exe
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Build Windows Installer .exe
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Build Windows Installer .exe
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Build Windows Installer .exe
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Build Windows Installer .exe
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Debug)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Linux Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Release)
Check failure on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Release)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MariaDB, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (Sqlite, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (PostgresSql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Advanced, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (MySql, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Debug)
Check warning on line 17 in src/Tgstation.Server.Host/IO/SynchronousIOManager.cs GitHub Actions / CI Pipeline / Windows Live Tests (SqlServer, Basic, Debug)
|
||
/// </summary> | ||
readonly ILogger<SynchronousIOManager> logger; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="SynchronousIOManager"/> class. | ||
/// </summary> | ||
/// <param name="logger">The value of <see cref="logger"/>.</param> | ||
public SynchronousIOManager(ILogger<SynchronousIOManager> logger) | ||
{ | ||
this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); | ||
} | ||
|
||
/// <inheritdoc /> | ||
public bool CreateDirectory(string path, CancellationToken cancellationToken) | ||
{ | ||
|
@@ -85,13 +101,18 @@ public bool WriteFileChecked(string path, Stream data, ref string? sha1InOut, Ca | |
|
||
cancellationToken.ThrowIfCancellationRequested(); | ||
|
||
logger.LogTrace("Starting checked write to {path} ({fileType} file)", path, newFile ? "New" : "Pre-existing"); | ||
|
||
using (var file = File.Open(path, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None)) | ||
{ | ||
cancellationToken.ThrowIfCancellationRequested(); | ||
|
||
// no sha1? no write | ||
if (file.Length != 0 && sha1InOut == null) | ||
{ | ||
logger.LogDebug("Aborting checked write due to missing SHA!"); | ||
return false; | ||
} | ||
|
||
// suppressed due to only using for consistency checks | ||
using (var sha1 = SHA1.Create()) | ||
|
@@ -109,6 +130,10 @@ public bool WriteFileChecked(string path, Stream data, ref string? sha1InOut, Ca | |
} | ||
|
||
var originalSha1 = GetSha1(file); | ||
|
||
if (!newFile) | ||
logger.LogTrace("Existing SHA calculated to be {sha}", originalSha1); | ||
|
||
if (originalSha1 != sha1InOut && !(newFile && sha1InOut == null)) | ||
{ | ||
sha1InOut = originalSha1; | ||
|
@@ -122,6 +147,7 @@ public bool WriteFileChecked(string path, Stream data, ref string? sha1InOut, Ca | |
|
||
if (data.Length != 0) | ||
{ | ||
logger.LogDebug("Writing file of length {size}", data.Length); | ||
file.Seek(0, SeekOrigin.Begin); | ||
data.Seek(0, SeekOrigin.Begin); | ||
|
||
|
@@ -132,7 +158,11 @@ public bool WriteFileChecked(string path, Stream data, ref string? sha1InOut, Ca | |
} | ||
|
||
if (data.Length == 0) | ||
{ | ||
logger.LogDebug("Stream is empty, deleting file"); | ||
File.Delete(path); | ||
} | ||
|
||
return true; | ||
} | ||
} | ||
|