summaryrefslogtreecommitdiffstats
path: root/source/tdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-07-11 00:06:29 +0000
committerJeremy Allison <jra@samba.org>2002-07-11 00:06:29 +0000
commitb0909cfa14fc7ef29d2b98b56d52723570da782a (patch)
tree638d8d25054fc8708f59865e900f2496defac7bc /source/tdb
parent202202bc475f3b8500423b1a9ccf0adc80a4dc49 (diff)
downloadsamba-b0909cfa14fc7ef29d2b98b56d52723570da782a.tar.gz
samba-b0909cfa14fc7ef29d2b98b56d52723570da782a.tar.xz
samba-b0909cfa14fc7ef29d2b98b56d52723570da782a.zip
*Experimental* new large-scaling printer code. Splits printing.tdb into
a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy.
Diffstat (limited to 'source/tdb')
-rw-r--r--source/tdb/tdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c
index 14e1d4a24f7..1118ad9c67a 100644
--- a/source/tdb/tdb.c
+++ b/source/tdb/tdb.c
@@ -419,7 +419,8 @@ static int rec_free_read(TDB_CONTEXT *tdb, tdb_off off, struct list_struct *rec)
TDB_LOG((tdb, 0,"rec_free_read non-free magic at offset=%d - fixing\n",
rec->magic, off));
rec->magic = TDB_FREE_MAGIC;
- tdb_write(tdb, off, rec, sizeof(*rec));
+ if (tdb_write(tdb, off, rec, sizeof(*rec)) == -1)
+ return -1;
}
if (rec->magic != TDB_FREE_MAGIC) {