perf(ecstore): batch delete object lock acquisition (#2374)

Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
weisd
2026-04-03 21:46:51 +08:00
committed by GitHub
parent 2d91e2f580
commit 25512e2635
14 changed files with 1120 additions and 142 deletions
+16
View File
@@ -456,6 +456,20 @@ message GenerallyLockResponse {
optional string lock_info = 3; // JSON serialized LockInfo
}
message BatchGenerallyLockRequest {
repeated string args = 1;
}
message GenerallyLockResult {
bool success = 1;
optional string error_info = 2;
optional string lock_info = 3; // JSON serialized LockInfo
}
message BatchGenerallyLockResponse {
repeated GenerallyLockResult results = 1;
}
message Mss {
map<string, string> value = 1;
}
@@ -837,6 +851,8 @@ service NodeService {
rpc UnLock(GenerallyLockRequest) returns (GenerallyLockResponse) {};
rpc ForceUnLock(GenerallyLockRequest) returns (GenerallyLockResponse) {};
rpc Refresh(GenerallyLockRequest) returns (GenerallyLockResponse) {};
rpc LockBatch(BatchGenerallyLockRequest) returns (BatchGenerallyLockResponse) {};
rpc UnLockBatch(BatchGenerallyLockRequest) returns (BatchGenerallyLockResponse) {};
/* -------------------------------peer rest service-------------------------- */