mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
rbd: return nil if the omap data exists
If the omap data already exits return nil. so that omap generator will not try to reserve anything again. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
5cddfc454e
commit
99dbe27921
@ -559,6 +559,8 @@ func RegenerateJournal(imageName, volumeID, pool, journalPool, requestName strin
|
||||
util.ErrorLog(ctx, "failed to add UUID mapping %s: %v", rbdVol, err)
|
||||
return err
|
||||
}
|
||||
// As the omap already exists for this image ID return nil.
|
||||
return nil
|
||||
}
|
||||
|
||||
rbdVol.ReservedID, rbdVol.RbdImageName, err = j.ReserveName(
|
||||
|
Loading…
Reference in New Issue
Block a user