git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9956009
)
r14916: print errno so I can work out why OpenBSD is failing the test for tdb
author
Andrew Tridgell
<tridge@samba.org>
Wed, 5 Apr 2006 03:51:43 +0000
(
03:51
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:00:16 +0000
(14:00 -0500)
in the build farm. msync() is failing.
(This used to be commit
4c3f3c414135c2b8fa9ea11a156246b56285b84f
)
source4/lib/tdb/common/transaction.c
patch
|
blob
|
history
diff --git
a/source4/lib/tdb/common/transaction.c
b/source4/lib/tdb/common/transaction.c
index 6960a02ad833b3713a1a0b24bab8dc08ee89c882..aa54c4ae3c89ca937737084782645a1ae02db7d3 100644
(file)
--- a/
source4/lib/tdb/common/transaction.c
+++ b/
source4/lib/tdb/common/transaction.c
@@
-544,7
+544,8
@@
static int transaction_sync(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t
if (msync(moffset + (char *)tdb->map_ptr,
length + (offset - moffset), MS_SYNC) != 0) {
tdb->ecode = TDB_ERR_IO;
- TDB_LOG((tdb, 0, "tdb_transaction: msync failed\n"));
+ TDB_LOG((tdb, 0, "tdb_transaction: msync failed - %s\n",
+ strerror(errno)));
return -1;
}
}