Commit Graph

26 Commits

Author SHA1 Message Date
Nick Cameron 8a128ac7ff Review changes
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-04-22 13:45:41 +12:00
Nick Cameron 995fe61f54 Update README
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-04-22 13:45:41 +12:00
Andy Lok e165566e43 fix typo
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-01-18 21:31:28 +08:00
Andy Lok ef14345b2b Update README.md
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-01-18 18:24:05 +08:00
ekexium 89ac804705
Fix several bugs in pessimistic transaction (#218)
* enable pessimistic_lock req to return values

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor Mutation: Lock should be able to cache values

Signed-off-by: ekexium <ekexium@gmail.com>

* fix: read and lock operations should not override each other

Signed-off-by: ekexium <ekexium@gmail.com>

* rewrite get_for_update: make semantics similar to TiDB

Signed-off-by: ekexium <ekexium@gmail.com>

* fix: correctly set for_update_ts for pessimistic rollback request

Signed-off-by: ekexium <ekexium@gmail.com>

* fix: allow update_cache to 'update' existing keys, but check the values

Signed-off-by: ekexium <ekexium@gmail.com>

* test: add test for pessimistic rollback

Signed-off-by: ekexium <ekexium@gmail.com>

* doc: add some doc for get_for_update

Signed-off-by: ekexium <ekexium@gmail.com>

* fix: make batch_for_update private

Signed-off-by: ekexium <ekexium@gmail.com>

* resolve comments

Signed-off-by: ekexium <ekexium@gmail.com>

* ci: sleep a while to wait for PD

Signed-off-by: ekexium <ekexium@gmail.com>

* feat: lock_keys is available for both optimistic and pessimistic txns

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: rename ReadLockCached to CachedAndLocked

Signed-off-by: ekexium <ekexium@gmail.com>

* revert changes to `batch_get_for_update`

Signed-off-by: ekexium <ekexium@gmail.com>

* test: ignore unstable mock-tikv test

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: rename `ReadLockCached` to `Locked`

Signed-off-by: ekexium <ekexium@gmail.com>

* test: do not use Fallible

Signed-off-by: ekexium <ekexium@gmail.com>

* doc: update readme format

Signed-off-by: ekexium <ekexium@gmail.com>

Co-authored-by: Nick Cameron <nrc@ncameron.org>
2021-01-14 16:56:28 +08:00
ekexium 23714d7ac9 readme: update dependency and doc
Signed-off-by: ekexium <ekexium@gmail.com>
2020-11-02 11:56:47 +08:00
Nick Cameron a399f8157a
Update README.md 2020-10-23 11:51:35 +13:00
Nick Cameron 20666c84e8
Update README.md
Change docs link
2020-10-23 11:50:54 +13:00
ekexium a23b160f91 readme: remove gc workaround
Signed-off-by: ekexium <ekexium@gmail.com>
2020-10-13 11:14:35 +08:00
ekexium 06283c0ad3 fix typo
Signed-off-by: ekexium <ekexium@gmail.com>
2020-10-12 10:12:05 +08:00
ekexium f4f86b18f9 add a workaround of GC
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-30 15:10:21 +08:00
ekexium 46d20a6c42 move raw_batch_scan to experimental
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-29 16:14:40 +08:00
ekexium 59d8307d08
Merge branch 'master' into update-readme 2020-09-29 14:18:22 +08:00
George Teo ad8ef075af
Add codec for encoding region for transaction client (#162)
Add codec for encoding region for transaction client. Fix some other bugs.

Signed-off-by: George Teo <george.c.teo@gmail.com>
Co-authored-by: ekexium <ekexium@gmail.com>
2020-09-29 14:05:39 +08:00
ekexium 3ffcb6f0ed add some descriptions on noteworthy behavior of requests
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-28 17:34:03 +08:00
ekexium 398a673a5f readme: separate raw and txn API table
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-23 16:39:10 +08:00
ekexium 914ed72389 readme: add API list and intro to types
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-23 16:33:52 +08:00
ekexium 316a194002 update readme: dependency, limit and code snippet
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-23 14:15:33 +08:00
Yilin Chen fe09429318
fix clippy
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-03-19 14:18:35 +08:00
Yilin Chen f093c64f21
Upgrade toolchain and dependencies.
CI errors should be fixed and feature gates are removed.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-26 11:45:04 +08:00
Yilin Chen 4ce0844280
Fix a clippy bug by upgrading toolchain version
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-07-31 16:38:16 +08:00
Yilin Chen ebcf7d4469
Address comments
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-07-31 16:10:32 +08:00
Yilin Chen 5a0b6feddf Use async/await in the transaction APIs
After this commit, the library requires a nightly Rust compiler to build.

The required toolchain version is also updated in README.md and .travis.yml.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-07-31 13:53:57 +08:00
Nick Cameron aa3e1af271 Force local and Travis builds to use an old nightly (#67)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-06-18 16:34:28 -07:00
Nick Cameron e9d32b1ed0 Update the README with info about Rust toolchains
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-05-30 10:20:03 +12:00
Ana Hobden a5a6b152cd
Add README and some lib.rs docs (#31)
* Add README and some lib.rs docs

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Apply suggestions from code review

Nit fixes.

Signed-off-by: Ana Hobden <operator@hoverbear.org>

* Nit fixes

Signed-off-by: Ana Hobden <operator@hoverbear.org>
2019-02-15 14:55:25 -08:00