-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11135 from filecoin-project/sbansal/sector-index
feat: sector index yugabyte implementation
- Loading branch information
Showing
15 changed files
with
1,211 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
create table sector_location | ||
( | ||
miner_id bigint not null, | ||
sector_num bigint not null, | ||
sector_filetype int not null, | ||
storage_id varchar not null, | ||
is_primary bool, | ||
read_ts timestamp(6), | ||
read_refs int, | ||
write_ts timestamp(6), | ||
write_lock_owner varchar, | ||
constraint sectorlocation_pk | ||
primary key (miner_id, sector_num, sector_filetype, storage_id) | ||
); | ||
|
||
|
||
|
||
create table storage_path | ||
( | ||
"storage_id" varchar not null | ||
constraint "storage_path_pkey" | ||
primary key, | ||
"urls" varchar, -- comma separated list of urls | ||
"weight" bigint, | ||
"max_storage" bigint, | ||
"can_seal" bool, | ||
"can_store" bool, | ||
"groups" varchar, -- comma separated list of group names | ||
"allow_to" varchar, -- comma separated list of allowed groups | ||
"allow_types" varchar, -- comma separated list of allowed file types | ||
"deny_types" varchar, -- comma separated list of denied file types | ||
|
||
"capacity" bigint, | ||
"available" bigint, | ||
"fs_available" bigint, | ||
"reserved" bigint, | ||
"used" bigint, | ||
"last_heartbeat" timestamp(6), | ||
"heartbeat_err" varchar | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.