]> git.sur5r.net Git - bacula/bacula/commit
Fix bug #1975 new label ignored when first is duplicate.
authorMarco van Wieringen <mvw@planets.elm.net>
Wed, 9 Jan 2013 15:10:10 +0000 (16:10 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Wed, 9 Jan 2013 15:10:10 +0000 (16:10 +0100)
commitedce1072951cfcf9e5bc7fdfce4045750d254bde
tree6af53f3d4339d111ad38310fd4cf5e82f82125f0
parent3922acf17b085b9985ce5233f28beb2e5a40a4a0
Fix bug #1975 new label ignored when first is duplicate.

When labelling a new volume, if an existing volume name is entered,
subsequent entries are ignored and the original one is attempted
each time.

After the first call to db_get_media_record the MediaId of the media
record is set and as such it will keep searching on MediaId instead
of using the new entered named. So clear the MediaId and set the
VolumeName and the call db_get_media_record so it will actually search
for the new name and not for the already existing mediaid of the
duplicate name entered before.
bacula/src/dird/ua_label.c