[1670] in Moira
fix imembers
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Tue Sep 19 17:43:25 2000
Message-Id: <200009192143.RAA03109@hodge-podge.mit.edu>
To: moiradev@MIT.EDU
Date: Tue, 19 Sep 2000 17:43:21 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>
This patch will fix at least part of the problem with the
imembers table; it definitely solves the problem Jonathon described in
detail in moira-admin[2732]. It's running on ttsp now if people want to
play with it.
Garry
Index: qsupport.pc
===================================================================
RCS file: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/server/qsupport.pc,v
retrieving revision 2.27
diff -c -r2.27 qsupport.pc
*** qsupport.pc 2000/08/15 00:06:44 2.27
--- qsupport.pc 2000/09/19 21:21:50
***************
*** 328,340 ****
{
EXEC SQL INSERT INTO imembers
(list_id, member_type, member_id, tag, direct, ref_count)
! VALUES (:lid, :mtype, :mid, :tag, 1, 1);
}
else
{
EXEC SQL INSERT INTO imembers
(list_id, member_type, member_id, tag, direct, ref_count)
! VALUES (:lid, :mtype, :mid, :tag, 0, 1);
}
iargv[0] = (char *)lid;
iargv[1] = mtype;
--- 328,340 ----
{
EXEC SQL INSERT INTO imembers
(list_id, member_type, member_id, tag, direct, ref_count)
! VALUES (:lid, :mtype, :mid, :tag, 1, :ref);
}
else
{
EXEC SQL INSERT INTO imembers
(list_id, member_type, member_id, tag, direct, ref_count)
! VALUES (:lid, :mtype, :mid, :tag, 0, :ref);
}
iargv[0] = (char *)lid;
iargv[1] = mtype;