Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] add dlock service, implemented etcd's dlock mechanism #1191

Merged
merged 1 commit into from
Dec 29, 2021
Merged

[feat] add dlock service, implemented etcd's dlock mechanism #1191

merged 1 commit into from
Dec 29, 2021

Conversation

robotLJW
Copy link
Member

@robotLJW robotLJW commented Dec 29, 2021

【issue】:#1192
【修改内容】:
1、新增 dlock 用于锁定 key,来进行其他操作
【修改原因】:需要有 dlock 机制
【影响范围】:无
【额外说明】:此 pr 只实现了 db 为 etcd 的情况,mongo 后面补充
【测试用例】:都增加相关接口的测试用例,自测全部通过

datasource/dlock/init.go Outdated Show resolved Hide resolved
datasource/etcd/dlock.go Outdated Show resolved Hide resolved
datasource/dlock/dlock.go Outdated Show resolved Hide resolved
@little-cui little-cui merged commit 175853b into apache:master Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants