]> andersk Git - moira.git/commitdiff
from dkk from last year's purge: when not remapping duplicate strings,
authordanw <danw>
Fri, 5 Nov 1999 16:38:47 +0000 (16:38 +0000)
committerdanw <danw>
Fri, 5 Nov 1999 16:38:47 +0000 (16:38 +0000)
make sure that the duplicates get marked as in-use so they don't get
deleted.

dbck/phase2.pc

index 8a8ace0354dc8a6773c647f90538c9f65e37f019..34b5c1908fd7ec70271eba466063cf123f8e596e 100644 (file)
@@ -385,9 +385,9 @@ int maybe_fixup_unref_string(int sid, int oid, char *oname, char *table,
       if (single_fix("Replace duplicate", 0))
        {
          ret = newid;
-         string_check(newid);
          doit = 1;
        }
+      string_check(ret);
     }
   else if (!string_check(ret))
     {
@@ -465,9 +465,9 @@ int maybe_fixup_unref_string2(char *table, char *field, char *cursor, int sid)
       if (single_fix("Replace duplicate", 0))
        {
          ret = newid;
-         string_check(newid);
          doit = 1;
        }
+      string_check(ret);
     }
   else if (!string_check(ret))
     {
This page took 0.489298 seconds and 5 git commands to generate.