Skip to content

Commit 1d4647f

Browse files
add crc checksums to sstables (#28)
1 parent 33f6ecd commit 1d4647f

36 files changed

Lines changed: 581 additions & 99 deletions

File tree

_examples/proto/hello_world.pb.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_examples/proto/mutation.pb.go

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

recordio/test_files/text_line.pb.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

simpledb/proto/compaction_metadata.pb.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

simpledb/proto/wal_mutation.pb.go

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sstables/proto/sstable.pb.go

Lines changed: 56 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sstables/proto/sstable.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ option go_package = "github.com/thomasjungblut/go-sstables/sstables/proto";
55
message IndexEntry {
66
bytes key = 1;
77
uint64 valueOffset = 2;
8+
uint64 checksum = 3; // a golang crc-64 checksum of the respective dataEntry
89
}
910

10-
// deprecated, it's unncessary overhead to marshal the bytes once more
11+
// deprecated, it's unnecessary overhead to marshal the bytes once more
1112
message DataEntry {
1213
bytes value = 1;
1314
}
@@ -20,4 +21,5 @@ message MetaData {
2021
uint64 indexBytes = 5;
2122
uint64 totalBytes = 6;
2223
uint32 version = 7; // currently version 1, the default is version 0 with protos as values
24+
uint64 skippedRecords = 8;
2325
}

0 commit comments

Comments
 (0)