Skip to content

Commit

Permalink
fix(portal): 修改 GetFileMetadataResponse 中文件大小 size 为 uint64 (#1171)
Browse files Browse the repository at this point in the history
该 pr 为 [#937](https://github.com/PKUHPC/SCOW/pull/937/files) 遗漏部分的补充修改

uint32 能表示的文件大小约为 4GB,故改为 uint64。

需要注意,scow 目前 proto 对于 uint64 转译后生成的文件中被解释为 number。number 比 uint64
的数值表示范围要小很多,目前没出现问题是由于 number 可以表示约为 9 PB 的文件大小,一般不会出现不够的情况
  • Loading branch information
Miracle575 authored Mar 20, 2024
1 parent a097dd1 commit 785de17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/kind-nails-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/grpc-api": patch
---

修改 GetFileMetadataResponse 中文件大小 size 为 uint64
2 changes: 1 addition & 1 deletion protos/portal/file.proto
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ message GetFileMetadataRequest {
}

message GetFileMetadataResponse {
uint32 size = 1;
uint64 size = 1;
string type = 2;
}

Expand Down

0 comments on commit 785de17

Please sign in to comment.