Skip to content

Commit

Permalink
add crc checksums to sstables (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjungblut authored Jul 28, 2024
1 parent 33f6ecd commit 1d4647f
Show file tree
Hide file tree
Showing 36 changed files with 581 additions and 99 deletions.
8 changes: 4 additions & 4 deletions _examples/proto/hello_world.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions _examples/proto/mutation.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions recordio/test_files/text_line.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions simpledb/proto/compaction_metadata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions simpledb/proto/wal_mutation.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 56 additions & 35 deletions sstables/proto/sstable.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion sstables/proto/sstable.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ option go_package = "github.com/thomasjungblut/go-sstables/sstables/proto";
message IndexEntry {
bytes key = 1;
uint64 valueOffset = 2;
uint64 checksum = 3; // a golang crc-64 checksum of the respective dataEntry
}

// deprecated, it's unncessary overhead to marshal the bytes once more
// deprecated, it's unnecessary overhead to marshal the bytes once more
message DataEntry {
bytes value = 1;
}
Expand All @@ -20,4 +21,5 @@ message MetaData {
uint64 indexBytes = 5;
uint64 totalBytes = 6;
uint32 version = 7; // currently version 1, the default is version 0 with protos as values
uint64 skippedRecords = 8;
}
Loading

0 comments on commit 1d4647f

Please sign in to comment.