This commit is contained in:
Badrish Chandramouli 2019-08-08 20:38:02 -07:00
Родитель e5a485993f
Коммит 82a01a553c
3 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -34,5 +34,6 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\src\core\FASTER.core.csproj" /> <ProjectReference Include="..\..\src\core\FASTER.core.csproj" />
<ProjectReference Include="..\..\test\FASTER.test.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

Просмотреть файл

@ -2,6 +2,7 @@
// Licensed under the MIT license. // Licensed under the MIT license.
using FASTER.core; using FASTER.core;
using FASTER.test.recovery.sumstore.simple;
using System; using System;
namespace FixedLenStructSample namespace FixedLenStructSample
@ -11,6 +12,10 @@ namespace FixedLenStructSample
// This sample uses fixed length structs for keys and values // This sample uses fixed length structs for keys and values
static void Main() static void Main()
{ {
while (true)
new SimpleRecoveryTests().SimpleRecoveryTest3();
return;
var log = Devices.CreateLogDevice("hlog.log", deleteOnClose: true); var log = Devices.CreateLogDevice("hlog.log", deleteOnClose: true);
var fht = new FasterKV<FixedLenKey, FixedLenValue, string, string, Empty, FixedLenFunctions> var fht = new FasterKV<FixedLenKey, FixedLenValue, string, string, Empty, FixedLenFunctions>
(128, new FixedLenFunctions(), (128, new FixedLenFunctions(),

Просмотреть файл

@ -206,6 +206,7 @@ namespace FASTER.test.recovery.sumstore.simple
s0.ResumeThread(); // should receive persistence callback s0.ResumeThread(); // should receive persistence callback
s0.Dispose(); s0.Dispose();
/*
fht2.Recover(token); fht2.Recover(token);
var guid = s1.ID; var guid = s1.ID;
@ -224,10 +225,11 @@ namespace FASTER.test.recovery.sumstore.simple
} }
} }
s3.Dispose(); s3.Dispose();
*/
log.Close(); log.Close();
fht1.Dispose(); fht1.Dispose();
fht2.Dispose(); // fht2.Dispose();
new DirectoryInfo(TestContext.CurrentContext.TestDirectory + "\\checkpoints4").Delete(true); new DirectoryInfo(TestContext.CurrentContext.TestDirectory + "\\checkpoints4").Delete(true);
} }
} }