forked from tursodatabase/libsql
-
Notifications
You must be signed in to change notification settings - Fork 0
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 tursodatabase#1782 from tursodatabase/tiered-compa…
…ction tiered compaction
- Loading branch information
Showing
12 changed files
with
359 additions
and
15 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
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
34 changes: 34 additions & 0 deletions
34
.../libsql_wal__storage__compaction__strategy__tier_reduction__test__partition_tiered-2.snap
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,34 @@ | ||
--- | ||
source: libsql-wal/src/storage/compaction/strategy/tier_reduction.rs | ||
expression: partition.first().unwrap() | ||
--- | ||
SegmentSet { | ||
namespace: test, | ||
segments: [ | ||
SegmentKey { | ||
start_frame_no: 101, | ||
end_frame_no: 105, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 106, | ||
end_frame_no: 110, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 111, | ||
end_frame_no: 115, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 116, | ||
end_frame_no: 120, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 121, | ||
end_frame_no: 122, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
], | ||
} |
39 changes: 39 additions & 0 deletions
39
...ts/libsql_wal__storage__compaction__strategy__tier_reduction__test__partition_tiered.snap
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,39 @@ | ||
--- | ||
source: libsql-wal/src/storage/compaction/strategy/tier_reduction.rs | ||
expression: partition.first().unwrap() | ||
--- | ||
SegmentSet { | ||
namespace: test, | ||
segments: [ | ||
SegmentKey { | ||
start_frame_no: 1, | ||
end_frame_no: 20, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 21, | ||
end_frame_no: 27, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 28, | ||
end_frame_no: 41, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 42, | ||
end_frame_no: 70, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 71, | ||
end_frame_no: 81, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 82, | ||
end_frame_no: 100, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
], | ||
} |
34 changes: 34 additions & 0 deletions
34
...napshots/libsql_wal__storage__compaction__strategy__tiered__test__partition_tiered-2.snap
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,34 @@ | ||
--- | ||
source: libsql-wal/src/storage/compaction/strategy/tiered.rs | ||
expression: partition.first().unwrap() | ||
--- | ||
SegmentSet { | ||
namespace: test, | ||
segments: [ | ||
SegmentKey { | ||
start_frame_no: 101, | ||
end_frame_no: 105, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 106, | ||
end_frame_no: 110, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 111, | ||
end_frame_no: 115, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 116, | ||
end_frame_no: 120, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 121, | ||
end_frame_no: 122, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
], | ||
} |
39 changes: 39 additions & 0 deletions
39
.../snapshots/libsql_wal__storage__compaction__strategy__tiered__test__partition_tiered.snap
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,39 @@ | ||
--- | ||
source: libsql-wal/src/storage/compaction/strategy/tiered.rs | ||
expression: partition.first().unwrap() | ||
--- | ||
SegmentSet { | ||
namespace: test, | ||
segments: [ | ||
SegmentKey { | ||
start_frame_no: 1, | ||
end_frame_no: 20, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 21, | ||
end_frame_no: 27, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 28, | ||
end_frame_no: 41, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 42, | ||
end_frame_no: 70, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 71, | ||
end_frame_no: 81, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
SegmentKey { | ||
start_frame_no: 82, | ||
end_frame_no: 100, | ||
timestamp: 1970-01-01T00:00:00Z, | ||
}, | ||
], | ||
} |
Oops, something went wrong.