Skip to content

Commit

Permalink
Revert #79 since it's causing regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
freeekanayaka committed Feb 21, 2020
1 parent 9c5bf40 commit cc194df
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,6 @@ func (d *Driver) Open(uri string) (driver.Conn, error) {
return nil, errors.Wrap(err, "failed to open database")
}

// TODO: this is a workaround to force the raft log to be replayed. It
// should instead be fixed in dqlite by executing a barrier.
// See https://github.com/canonical/dqlite/issues/210.
conn.request.Reset()
conn.response.Reset()
if _, err := conn.ExecContext(ctx, "PRAGMA ignored_pragma", nil); err != nil {
conn.protocol.Close()
return nil, errors.Wrap(err, "force initial raft log replay")
}

return conn, nil
}

Expand Down

0 comments on commit cc194df

Please sign in to comment.