diff options
Diffstat (limited to 'lib/tdb2/transaction.c')
-rw-r--r-- | lib/tdb2/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb2/transaction.c b/lib/tdb2/transaction.c index eab00e0937..10f4862c6e 100644 --- a/lib/tdb2/transaction.c +++ b/lib/tdb2/transaction.c @@ -203,7 +203,7 @@ static enum TDB_ERROR transaction_write(struct tdb_context *tdb, tdb_off_t off, tdb_len_t len2 = PAGESIZE - (off % PAGESIZE); ecode = transaction_write(tdb, off, buf, len2); if (ecode != TDB_SUCCESS) { - return -1; + return ecode; } len -= len2; off += len2; |