convert leveldb to log-structure

This commit is contained in:
Barak Michener 2014-08-05 14:17:38 -04:00
parent dcb495d145
commit d4e5eead32
4 changed files with 177 additions and 140 deletions

View file

@ -30,7 +30,7 @@ type Single struct {
func NewSingleReplication(ts graph.TripleStore, opts graph.Options) (graph.QuadWriter, error) {
rep := &Single{nextID: ts.Horizon(), ts: ts}
if rep.nextID == -1 {
if rep.nextID <= 0 {
rep.nextID = 1
}
return rep, nil