Files
zapdb/pb/gen.sh
Manish R JainandGitHub b5ec83c05a Renaming and Refactoring (#655)
- Flatten function can now be called from live code path, i.e. while Badger is running.
- Refactor stop and start compactions code, so it can be used in Flatten, DropAll, and other places.
- Rename protos package to pb. Consolidate both the proto files into one pb.proto.
- Rename KeyToKVList to just KeyToList in Stream.
- Rename KVPair to just KV.

Changes:
* Rename protos to pb.
* Rename KeyToKVList to KeyToList.
* Refactor stop and start compactions, so we can use it in various places.
* Rename KVPair to KV
* Defer startCompactions right next to stopCompactions.
* Catch all usages of KVPair. Rename to KV.
2018-12-28 16:51:05 -08:00

8 lines
209 B
Bash
Executable File

#!/bin/bash
# You might need to go get -v github.com/gogo/protobuf/...
protos=${GOPATH-$HOME/go}/src/github.com/dgraph-io/badger/pb
pushd $protos > /dev/null
protoc --gofast_out=plugins=grpc:. -I=. pb.proto