[1704] in Moira

home help back first fref pref prev next nref lref last post

increment.pc changes

daemon@ATHENA.MIT.EDU (Mark Silis)
Sun Dec 10 07:39:10 2000

Message-Id: <200012101239.HAA02329@I-fear-change.mit.edu>
To: moiradev@MIT.EDU
Date: Sun, 10 Dec 2000 07:39:07 -0500
From: Mark Silis <mark@MIT.EDU>

	These changes ensure all the relevant fields in the users table row
are recorded before and after the incremental. This is relevant because
otherwise afs.incr is referencing the mitid when it should be referencing
the user's state field. 

-- Mark

Index: increment.pc
===================================================================
RCS file: /afs/athena/astaff/project/moiradev/repository//moira/server/increment.pc,v
retrieving revision 2.8
diff -r2.8 increment.pc
95,97c95,97
<       sprintf(stmt_buf, "SELECT u.login, u.unix_uid, u.shell, u.last, "
< 	      "u.first, u.middle, u.status, u.clearid, u.type "
< 	      "FROM users u WHERE %s", qual);
---
>       sprintf(stmt_buf, "SELECT u.login, u.unix_uid, u.shell, "
> 	      "u.winconsoleshell, u.last, u.first, u.middle, u.status, "
> 	      "u.clearid, u.type FROM users u WHERE %s", qual);
99c99
<       beforec = 9;
---
>       beforec = 10;
213,215c213,215
<       sprintf(stmt_buf, "SELECT u.login, u.unix_uid, u.shell, u.last, "
< 	      "u.first, u.middle, u.status, u.clearid, u.type "
< 	      "FROM users u WHERE %s", qual);
---
>       sprintf(stmt_buf, "SELECT u.login, u.unix_uid, u.shell, "
> 	      "u.winconsoleshell, u.last, u.first, u.middle, u.status, "
> 	      "u.clearid, u.type FROM users u WHERE %s", qual);
217c217
<       afterc = 9;
---
>       afterc = 10;

home help back first fref pref prev next nref lref last post