Skip to content

Commit abc28eb

Browse files
add null record counter to sstables (#45)
This should keep track of how many tombstones are written in simpledb. Co-authored-by: Thomas Jungblut <tjungblu@redhat.com>
1 parent ca4a6f5 commit abc28eb

12 files changed

+217
-392
lines changed

_examples/proto/hello_world.pb.go

+15-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_examples/proto/mutation.pb.go

+44-87
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

memstore/memstore_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ func TestMemStoreTombstoneBehavior(t *testing.T) {
286286
val, err = reader.Get([]byte("bkey"))
287287
require.Nil(t, err)
288288
require.Nil(t, val)
289+
290+
require.Equal(t, uint64(2), reader.MetaData().NumRecords)
291+
require.Equal(t, uint64(2), reader.MetaData().NullValues)
289292
}
290293

291294
func TestMemStoreSStableIteratorUpsertOnly(t *testing.T) {

0 commit comments

Comments
 (0)