[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Major (un)ordered file code Oops...



In case you ever wondered why the first lookup on _any_ "ordered" or
"unordered" zmailer db fails with zmailer... here's why. Ouch.

This is probably the reason people are using DB files.  :-/

Index: router/libdb/unordered.c
--- router/libdb/unordered.c.orig Mon, 13 Jul 1998 09:20:57 +0200 smurf (net_mail_zmailer/e/45_unordered. 1.11 664) noris.4
+++ router/libdb/unordered.c      Thu, 30 Jul 1998 08:31:32 +0200 smurf (net_mail_zmailer/e/45_unordered. 1.11 664) noris.4(w)
@@ -218,9 +218,10 @@
 		fm->offsets = NULL;
 		fm->membuf = NULL;
 #endif
-		if (spl == NULL)
+		if (spl == NULL) {
 			sp_install(symid, (void *)fm, imode, spt_files);
-		else
+			spl = sp_lookup(symid, spt_files);
+		} else
 			spl->data = (void *)fm;
 	}
 	return spl;

-- 
Matthias Urlichs
noris network GmbH