| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Michael
|
|
|
|
|
|
|
|
|
| |
error condition to write. This is in tdb_new_database.
Fix one call to tdb_new_database in tdb_open_ex to not
overwrite the newly propagated errno (typically ENOSPC).
Michael
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* prevent infinite loops due to 0 bytes written:
try once more. if we still get 0 as return,
set errno to ENOSPC and return -1 (error)
* replace int by correct types (ssize_t and size_t).
* print a warning log message in case "written < requested to write"
usually this means, that the next call to pwrite will fail
with return value -1 and set errno accordingly.
Note that the former error condition "written != requested to write"
is not a correct error condition of write/pwrite. If this is due
to an error, a subsequent call to (p)write will reveal the cause
(typically "no space left on device" - ENOSPC).
Michael
|
|
|
|
|
|
|
| |
The proper error condition is (ret == -1) instead of
(ret != number_of_byte_told_to_write).
Michael
|
| |
|
| |
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
| |
say "locks chain and returned record", not
"and returns record"
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
| |
travlocks.lock_rw for lock read/write types, it
was sometimes using it (tdb_next_lock) and
sometimes explicitly using F_WRLCK instead.
Change this to consistently use travlocks.lock_rw
only.
I'm pretty sure about this fix (else I woudn't
be checking this in :-) but tridge and Volker
please review.
Jeremy.
|
|
|
|
| |
optimization.
|
|
|
|
| |
metze
|
|
|
|
|
|
|
|
| |
change TDB_DATA from char * to unsigned char *
and fix all compiler warnings in the users
metze
|
|
move source/tdb to source/lib/tdb
metze
|