[1458] in Moira
moirad bugfix, quick checkin
daemon@ATHENA.MIT.EDU (mwhitson@MIT.EDU)
Sat Mar 18 03:13:08 2000
From: mwhitson@MIT.EDU
Date: Sat, 18 Mar 2000 03:11:22 -0500
Message-Id: <200003180811.DAA06166@dzur.mit.edu>
To: moiradev@MIT.EDU
This is for quick checkin; it fixes a bug that was preventing Garry
from deploying the new moirad: if a user registers and gets an IMAP
pobox (previously impossible), a filesys incremental is run as the
user.po filesys is created, which has the side effect of caching the
"#nnnnn" login name, which in turn causes the later filesys
incremental (for creation of the homedir) to fail.
Index: qsupport.pc
===================================================================
RCS file: /afs/athena/astaff/project/moiradev/repository/moira/server/qsupport.pc,v
retrieving revision 2.20
diff -c -r2.20 qsupport.pc
*** qsupport.pc 2000/03/14 21:50:17 2.20
--- qsupport.pc 2000/03/18 08:01:21
***************
*** 1436,1441 ****
--- 1436,1445 ----
com_err(whoami, 0, "set login name to %s", login);
incremental_after(USERS_TABLE, buffer, 0);
+ /* We've just changed the login name in the DB; recache it in case
+ the wrong thing got into the cache earlier. */
+ cache_entry(login, USERS_TABLE, users_id);
+
/* create filesystem */
if (set_next_object_id("filsys_id", FILESYS_TABLE, 0))
return MR_NO_ID;
***************
*** 1484,1491 ****
com_err(whoami, 0, "quota of %d assigned", def_quota);
if (dbms_errno)
return mr_errcode;
-
- cache_entry(login, USERS_TABLE, users_id);
EXEC SQL UPDATE tblstats SET updates = updates + 1, modtime = SYSDATE
WHERE table_name = 'users';
--- 1488,1493 ----