Skip to content

Commit

Permalink
Merge pull request #1576 from authzed/crdb-docfix
Browse files Browse the repository at this point in the history
fix list formatting in crdb overlap doc
  • Loading branch information
ecordell committed Oct 11, 2023
2 parents a4d7a98 + 4ffa35a commit a7e0007
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/datastore/crdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Let's take a look at a couple of examples of how reversed timestamps may be an i

Two separate `WriteRelationship` calls come in:

`A`: Alice removes Bob from the `shared` folder
`B`: Alice adds a new document `not-for-bob.txt` to the `shared` folder
- `A`: Alice removes Bob from the `shared` folder
- `B`: Alice adds a new document `not-for-bob.txt` to the `shared` folder

The normal case is that the timestamp for `A` < the timestamp for `B`.

Expand All @@ -88,9 +88,9 @@ This could be mitigated in your application by:

Two separate API calls come in:

`A`: Alice remove Bob as a viewer of document `secret`
`B`: Alice does a `FullyConsistent` `Check` request to get a ZedToken
`C`: Alice stores that ZedToken (timestamp `B`) with the document `secret` when she updates it to say `Bob is a fool`.
- `A`: Alice remove Bob as a viewer of document `secret`
- `B`: Alice does a `FullyConsistent` `Check` request to get a ZedToken
- `C`: Alice stores that ZedToken (timestamp `B`) with the document `secret` when she updates it to say `Bob is a fool`.

Same as before, the normal case is that the timestamp for `A` < the timestamp for `B`, but if the two writes hit the conditions for a timestamp reversal, then `B < A`.

Expand Down

0 comments on commit a7e0007

Please sign in to comment.