rbd: use CSIInstanceID var instead of "default" in RegenerateJournal()

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 39d6752fc1)
This commit is contained in:
Rakshith R 2021-06-28 10:41:20 +05:30 committed by mergify[bot]
parent fbc1e5f3d5
commit d4c84e814b

View File

@ -569,7 +569,7 @@ func RegenerateJournal(
if rbdVol.JournalPool == "" {
rbdVol.JournalPool = rbdVol.Pool
}
volJournal = journal.NewCSIVolumeJournal("default")
volJournal = journal.NewCSIVolumeJournal(CSIInstanceID)
j, err := volJournal.Connect(rbdVol.Monitors, rbdVol.RadosNamespace, cr)
if err != nil {
return "", err