Skip to content

Commit

Permalink
docs: update tidb_http_api.md add MVCC operation type description (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored Jan 6, 2022
1 parent 09f0238 commit 1b2a6e9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/tidb_http_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@
"value": {
"info": {
"writes": [
{
"type": 1,
"start_ts": 423158426542538752,
"commit_ts": 423158426543587328
},
{
"start_ts": 423158426542538752,
"commit_ts": 423158426543587328,
Expand All @@ -231,6 +236,21 @@
}
```

*Hint: The meaning of the MVCC operation type:*

```protobuf
enum Op {
Put = 0;
Del = 1;
Lock = 2;
Rollback = 3;
// insert operation has a constraint that key should not exist before.
Insert = 4;
PessimisticLock = 5;
CheckNotExists = 6;
}
```

1. Get MVCC Information of the first key in the table with a specified start ts

```shell
Expand Down

0 comments on commit 1b2a6e9

Please sign in to comment.