]> git.donarmstrong.com Git - debbugs.git/commitdiff
unlock nextnumber after overwriting
authorDon Armstrong <don@donarmstrong.com>
Tue, 13 Mar 2012 22:16:56 +0000 (15:16 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 13 Mar 2012 22:16:56 +0000 (15:16 -0700)
Debbugs/Status.pm

index e70643fbe6244f86c799b9149e4fc44e51a653bf..0d97a323b5c1adcdba61013890e15ac6c0b153c4 100644 (file)
@@ -547,6 +547,7 @@ sub new_bug {
     close $nn_fh;
     overwritefile("nextnumber",
                  ($nn+1)."\n");
+    unfilelock();
     my $nn_hash = get_hashname($nn);
     use IO::File;
     my $t_fh = IO::File->new("/home/don/temp.txt",'a') or die "Unable to open ~don/temp.txt for writing: $!";