Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce StreamDone in Stream Writer #1061

Merged
merged 15 commits into from
Oct 18, 2019
Merged
4 changes: 2 additions & 2 deletions contrib/cover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ TMP=$(mktemp /tmp/badger-coverage-XXXXX.txt)
BUILD=$1
OUT=$2

set -e
set -ex

pushd $SRC &> /dev/null

# create coverage output
echo 'mode: atomic' > $OUT
for PKG in $(go list ./...|grep -v -E 'vendor'); do
go test -covermode=atomic -coverprofile=$TMP $PKG
go test -v -covermode=atomic -coverprofile=$TMP $PKG
tail -n +2 $TMP >> $OUT
done

Expand Down
135 changes: 86 additions & 49 deletions pb/pb.pb.go

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

2 changes: 2 additions & 0 deletions pb/pb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ message KV {

// Stream id is used to identify which stream the KV came from.
uint32 stream_id = 10;
// Stream done is used to indicate end of stream.
bool stream_done = 11;
}

message KVList {
Expand Down
Loading