diff --git a/options.go b/options.go index ede01d2e4..8d7893475 100644 --- a/options.go +++ b/options.go @@ -167,7 +167,6 @@ func buildTableOptions(db *DB) table.Options { dk, err := db.registry.LatestDataKey() y.Check(err) return table.Options{ - SyncWrites: opt.SyncWrites, ReadOnly: opt.ReadOnly, TableSize: uint64(opt.BaseTableSize), BlockSize: opt.BlockSize, diff --git a/table/table.go b/table/table.go index f596d6da5..22d3f7187 100644 --- a/table/table.go +++ b/table/table.go @@ -51,7 +51,6 @@ const intSize = int(unsafe.Sizeof(int(0))) type Options struct { // Options for Opening/Building Table. - SyncWrites bool // Open tables in read only mode. ReadOnly bool @@ -269,10 +268,8 @@ func CreateTable(fname string, builder *Builder) (*Table, error) { written := bd.Copy(mf.Data) y.AssertTrue(written == len(mf.Data)) - if builder.opts.SyncWrites { - if err := z.Msync(mf.Data); err != nil { - return nil, y.Wrapf(err, "while calling msync on %s", fname) - } + if err := z.Msync(mf.Data); err != nil { + return nil, y.Wrapf(err, "while calling msync on %s", fname) } return OpenTable(mf, *builder.opts) }