aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-03-23 10:01:58 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-03-23 10:01:58 -0600
commit1282a4aff765af4f9975faa18b6255ea18e2598f (patch)
tree9eab120d9749dec8835e8420e22985d18af79d3d /tx.go
parentMerge pull request #75 from Slacken/32bit_build_fails_bucket_go_67 (diff)
parentConsolidate syscall files. (diff)
downloaddedo-1282a4aff765af4f9975faa18b6255ea18e2598f.tar.gz
dedo-1282a4aff765af4f9975faa18b6255ea18e2598f.tar.xz
Merge pull request #76 from benbjohnson/fsync
fdatasync
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tx.go b/tx.go
index 5b2b14d..181444e 100644
--- a/tx.go
+++ b/tx.go
@@ -329,6 +329,9 @@ func (t *Tx) write() error {
return err
}
}
+ if err := fdatasync(t.db.file); err != nil {
+ return err
+ }
// Clear out page cache.
t.pages = make(map[pgid]*page)