2 changed files with 23 additions and 11 deletions
@ -1,14 +1,26 @@
|
||||
Index: libjio/trans.c
|
||||
--- libjio/trans.c.orig 2009-03-29 06:31:21 +0200
|
||||
+++ libjio/trans.c 2009-03-30 21:40:55 +0200
|
||||
@@ -421,8 +421,10 @@
|
||||
ts->fs->ltrans = linger;
|
||||
pthread_mutex_unlock(&(ts->fs->ltlock));
|
||||
} else {
|
||||
--- libjio/trans.c.orig 2009-04-25 19:39:32 +0200
|
||||
+++ libjio/trans.c 2009-04-25 23:12:08 +0200
|
||||
@@ -234,8 +234,10 @@
|
||||
goto rollback_exit;
|
||||
}
|
||||
} else {
|
||||
+#if 0
|
||||
if (fdatasync(ts->fs->fd) != 0)
|
||||
goto rollback_exit;
|
||||
if (fdatasync(ts->fs->fd) != 0)
|
||||
goto rollback_exit;
|
||||
+#endif
|
||||
}
|
||||
|
||||
/* the transaction has been applied, so we cleanup and remove
|
||||
* it from the disk */
|
||||
@@ -517,9 +519,11 @@
|
||||
if (fs->fd < 0)
|
||||
return -1;
|
||||
|
||||
+#if 0
|
||||
rv = fdatasync(fs->fd);
|
||||
if (rv != 0)
|
||||
return rv;
|
||||
+#endif
|
||||
|
||||
pthread_mutex_lock(&(fs->ltlock));
|
||||
while (fs->ltrans != NULL) {
|
||||
|
||||
Loading…
Reference in new issue