-
Notifications
You must be signed in to change notification settings - Fork 17
fix: use SlotSize as VDisk size limit if AvailableSize is 0 #2996
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,9 +28,9 @@ export interface PreparedVDisk | |
| StringifiedId?: string; | ||
|
|
||
| AvailableSize?: number; | ||
| TotalSize?: number; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this field doesnt exist anymore or we just intentionally choose to ignore it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @greptile could you answer this question? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking at the code context, the comment is asking about the This field still exists - it's being kept intentionally. The PR renamed The change in this PR was specifically:
So to answer: the field still exists and is intentionally kept - no changes were made to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @greptile I mean we removed TotalSize but it seems field from api? Is it correct to remove it totally? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perfect! Looking at the API type
So yes, it's correct to remove
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @greptile thx darling, now I understand <3 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're welcome! 💙 Glad I could help clarify that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just replaced |
||
| AllocatedSize?: number; | ||
| AllocatedPercent?: number; | ||
| SizeLimit?: number; | ||
|
|
||
| Donors?: PreparedVDisk[]; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.