]> 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)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:07 +0000 (14:51 +0200)
commit2e1c99e985f64a1e36e341feafb3ee92cc455387
treeafb93cb0baebc92e2215e5ceea7816de1472b15f
parent68695696e446048af82d18d9ffb6dd8ab0e955be
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