We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 014567e commit 87458c9Copy full SHA for 87458c9
tx.go
@@ -509,9 +509,12 @@ func (tx *Tx) writeMeta() error {
509
tx.meta.write(p)
510
511
// Write the meta page to file.
512
+ tx.db.metalock.Lock()
513
if _, err := tx.db.ops.writeAt(buf, int64(p.id)*int64(tx.db.pageSize)); err != nil {
514
+ tx.db.metalock.Unlock()
515
return err
516
}
517
518
if !tx.db.NoSync || IgnoreNoSync {
519
// gofail: var beforeSyncMetaPage struct{}
520
if err := fdatasync(tx.db); err != nil {
0 commit comments