Skip to content

Commit cc4a5c9

Browse files
fix: add comments
1 parent a3d0c74 commit cc4a5c9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/containers/Storage/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export function getStorageGroupsInitialEntitiesCount(
8686
}
8787

8888
function isErasureWithDifferentDC(erasure?: Erasure) {
89+
// These erasure types suppose the data distributed across 3 different DC
8990
return erasure === 'mirror-3-dc' || erasure === 'mirror-3of4';
9091
}
9192

src/types/api/storage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ export interface TStoragePDisk {
228228
Whiteboard?: TPDiskStateInfo;
229229
}
230230

231+
/**
232+
* https://ydb.tech/docs/en/concepts/topology#cluster-config
233+
*/
231234
export type Erasure = 'none' | 'block-4-2' | 'mirror-3-dc' | 'mirror-3of4';
232235

233236
// ==== Request types ====

0 commit comments

Comments
 (0)