summaryrefslogtreecommitdiff
path: root/source3/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
commit25148a148c1bec680924909722d59d0d47c795ae (patch)
treeb856cfccc097933b09b5c8cea3b08cba879bd74d /source3/tdb
parent78722434a6511f06b8ea7da0b8a4ca08c8980c04 (diff)
downloadsamba-25148a148c1bec680924909722d59d0d47c795ae.tar.gz
samba-25148a148c1bec680924909722d59d0d47c795ae.tar.bz2
samba-25148a148c1bec680924909722d59d0d47c795ae.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. (This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index 14e1d4a24f..1118ad9c67 100644
--- a/source3/tdb/tdb.c
+++ b/source3/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) {