]> andersk Git - moira.git/commitdiff
Don't always insert new rows with refcount = 1, it's possible for it to
authorzacheiss <zacheiss>
Wed, 20 Sep 2000 17:48:34 +0000 (17:48 +0000)
committerzacheiss <zacheiss>
Wed, 20 Sep 2000 17:48:34 +0000 (17:48 +0000)
be higher.

server/qsupport.pc

index 19ec81f375787553dbf04bac2cbe87dbf29a3f29..ea6a60c7870a9881c9f3a1762e67586e7cdecbd8 100644 (file)
@@ -328,13 +328,13 @@ int add_member_to_list(struct query *q, char **argv, client *cl)
                {
                  EXEC SQL INSERT INTO imembers
                    (list_id, member_type, member_id, tag, direct, ref_count)
-                   VALUES (:lid, :mtype, :mid, :tag, 1, 1);
+                   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, 1);
+                   VALUES (:lid, :mtype, :mid, :tag, 0, :ref);
                }
              iargv[0] = (char *)lid;
              iargv[1] = mtype;
This page took 0.051876 seconds and 5 git commands to generate.