Files
Sam Hughes a01f099b1a Replace compaction log with manifest
What this does do:
 - appends to manifest and syncs before deleting old files from disk,
   to ensure safety amidst kill -9 or system crash

What this could do but does not:
 - include file size, smallest/biggest keys in the manifest
 - keep track of value log files

It might be nice to have file size and include all files, to verify
that a `cp -R` or file-based backup/restore has included everything.
Right now this just gets us crash safety.
2017-08-06 14:25:43 -07:00

8 lines
212 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/protos
pushd $protos > /dev/null
protoc --gofast_out=plugins=grpc:. -I=. *.proto