diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-04-05 03:51:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:16 -0500 |
commit | b9ccb39c48870b0a84e19e816932d08b3304c1f4 (patch) | |
tree | 4c22c27cf4bb896ca2d18f015430226055bf7e2a /source4/lib/tdb | |
parent | 9956009a41f2489abefa0a7a21553fb0b78e1fed (diff) | |
download | samba-b9ccb39c48870b0a84e19e816932d08b3304c1f4.tar.gz samba-b9ccb39c48870b0a84e19e816932d08b3304c1f4.tar.bz2 samba-b9ccb39c48870b0a84e19e816932d08b3304c1f4.zip |
r14916: print errno so I can work out why OpenBSD is failing the test for tdb
in the build farm. msync() is failing.
(This used to be commit 4c3f3c414135c2b8fa9ea11a156246b56285b84f)
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r-- | source4/lib/tdb/common/transaction.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/tdb/common/transaction.c b/source4/lib/tdb/common/transaction.c index 6960a02ad8..aa54c4ae3c 100644 --- 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; } } |