Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Aug 9, 2019
1 parent e5a4859 commit 82a01a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@

<ItemGroup>
<ProjectReference Include="..\..\src\core\FASTER.core.csproj" />
<ProjectReference Include="..\..\test\FASTER.test.csproj" />
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions cs/playground/FixedLenStructSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT license.

using FASTER.core;
using FASTER.test.recovery.sumstore.simple;
using System;

namespace FixedLenStructSample
Expand All @@ -11,6 +12,10 @@ public class Program
// This sample uses fixed length structs for keys and values
static void Main()
{
while (true)
new SimpleRecoveryTests().SimpleRecoveryTest3();
return;

var log = Devices.CreateLogDevice("hlog.log", deleteOnClose: true);
var fht = new FasterKV<FixedLenKey, FixedLenValue, string, string, Empty, FixedLenFunctions>
(128, new FixedLenFunctions(),
Expand Down
4 changes: 3 additions & 1 deletion cs/test/SimpleRecoveryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public void SimpleRecoveryTest3()
s0.ResumeThread(); // should receive persistence callback
s0.Dispose();

/*
fht2.Recover(token);
var guid = s1.ID;
Expand All @@ -224,10 +225,11 @@ public void SimpleRecoveryTest3()
}
}
s3.Dispose();
*/

log.Close();
fht1.Dispose();
fht2.Dispose();
// fht2.Dispose();
new DirectoryInfo(TestContext.CurrentContext.TestDirectory + "\\checkpoints4").Delete(true);
}
}
Expand Down

0 comments on commit 82a01a5

Please sign in to comment.