Skip to content

Commit

Permalink
chore(vlog): remove replay closer while opening vlog (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanJain8 authored Oct 16, 2020
1 parent ba5ec6c commit d247778
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,9 @@ func Open(opt Options) (*DB, error) {
db.orc.nextTxnTs = db.MaxVersion()
db.opt.Infof("Set nextTxnTs to %d", db.orc.nextTxnTs)

replayCloser := z.NewCloser(1)
go db.doWrites(replayCloser)

if err = db.vlog.open(db); err != nil {
replayCloser.SignalAndWait()
return db, y.Wrapf(err, "During db.vlog.open")
}
replayCloser.SignalAndWait() // Wait for replay to be applied first.

// Let's advance nextTxnTs to one more than whatever we observed via
// replaying the logs.
Expand Down

0 comments on commit d247778

Please sign in to comment.