mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-19 19:16:17 +00:00
perf(ecstore): batch delete object lock acquisition (#2374)
Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
@@ -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-------------------------- */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user