Skip to content

Commit

Permalink
Merge pull request #105 from Doxense/refac_directory_cache
Browse files Browse the repository at this point in the history
Rewrite the Directory Layer Cache implementation to use value-checks
  • Loading branch information
KrzysFR authored May 14, 2020
2 parents f37399d + 86d0d13 commit a1d849d
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 152 deletions.
2 changes: 1 addition & 1 deletion FoundationDB.Client/FdbOperationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ private bool EnsureValueCheck(string tag, Slice key, Slice expectedValue, Slice
this.HasAtLeastOneFailedValueCheck = true;
if (previous != true)
{
if (this.Transaction?.IsLogged() == true) this.Transaction.Annotate($"Failed value-check '{tag}' for '{key:P}': expected '{expectedValue:V}', actual '{actualResult:V}'");
if (this.Transaction?.IsLogged() == true) this.Transaction.Annotate($"Failed value-check '{tag}' for '{FdbKey.Dump(key)}': expected '{expectedValue:V}', actual '{actualResult:V}'");
tags[tag] = true;
}
return false;
Expand Down
Loading

0 comments on commit a1d849d

Please sign in to comment.