Date: Sun, 19 Jan 1997 22:38:27 -0500 (EST) From: Bill Paul <wpaul@skynet.ctr.columbia.edu> To: hench@cae.uwm.edu (Michael L. Hench) Cc: hackers@freebsd.org Subject: Re: NIS breakage Message-ID: <199701200338.WAA02811@skynet.ctr.columbia.edu> In-Reply-To: <Pine.WNT.3.95.970119151145.-1008417A-100000@hench> from "Michael L. Hench" at Jan 19, 97 03:22:35 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Of all the gin joints in all the towns in all the world, Michael L. Hench had to walk into mine and say: > a quick note. 2.2. supped this morning, i cant seem to tfr a map > ~38k, > as measured by 'ypcat passwd.byname'. ypserv is local, doesnt seem to > matter WHICH 38k (not data dependent). > lots of wierdness trying a 98k map; ypserv cores (the child), sometimes > loops (sends same lines over and over) ill see if i can get a better idea > as to what/where/when. i did a make world 2x so i dont think anything is > inconsistent. Hm. Well, I did find a bug in ypserv/yp_dblookup.c:yp_next_record() which looks like it might be the cause of your trouble. I've committed the fix to the RELENG_2_2 and -current branches. Since it's small, here's a patch: *** yp_dblookup.c Mon Jan 13 23:20:26 1997 --- yp_dblookup.c.new Sun Jan 19 19:20:09 1997 *************** *** 600,607 **** rval = yp_first_record(dbp,key,data,allow); if (rval == YP_NOKEY) return(YP_NOMORE); ! else return(rval); } if (ypdb_debug) --- 600,612 ---- rval = yp_first_record(dbp,key,data,allow); if (rval == YP_NOKEY) return(YP_NOMORE); ! else { ! #ifdef DB_CACHE ! qhead.cqh_first->dbptr->key = key->data; ! qhead.cqh_first->dbptr->size = key->size; ! #endif return(rval); + } } if (ypdb_debug) Please let me know if this changes ypserv's behavior, one way or the other. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness" =============================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701200338.WAA02811>