Skip to content

Commit

Permalink
curio: Fix typo in table name
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Apr 26, 2024
1 parent 9a612f0 commit 16e8ac8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/curio/guidedsetup/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func MigrateSectors(ctx context.Context, maddr address.Address, mmeta datastore.

// Splitting the SQL statement for readability and adding new fields
_, err = db.Exec(ctx, `
INSERT INTO sector_meta_pieces (
INSERT INTO sectors_meta_pieces (
sp_id, sector_num, piece_num, piece_cid, piece_size,
requested_keep_data, raw_data_size, start_epoch, orig_end_epoch,
f05_deal_id, ddo_pam
Expand Down
2 changes: 1 addition & 1 deletion curiosrc/seal/task_submit_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (s *SubmitCommitTask) transferFinalizedSectorData(ctx context.Context, spID

// Execute the query for piece metadata
if _, err := s.db.Exec(ctx, `
INSERT INTO sector_meta_pieces (
INSERT INTO sectors_meta_pieces (
sp_id,
sector_num,
piece_num,
Expand Down
2 changes: 1 addition & 1 deletion lib/harmony/harmonydb/sql/20240425-sector_meta.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CREATE TABLE sectors_meta (
PRIMARY KEY (sp_id, sector_num)
);

CREATE TABLE sector_meta_pieces (
CREATE TABLE sectors_meta_pieces (
sp_id BIGINT NOT NULL,
sector_num BIGINT NOT NULL,
piece_num BIGINT NOT NULL,
Expand Down

0 comments on commit 16e8ac8

Please sign in to comment.