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

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

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