mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
rbd: use CSIInstanceID
var instead of "default" in RegenerateJournal()
Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
9cd8326bb2
commit
39d6752fc1
@ -569,7 +569,7 @@ func RegenerateJournal(
|
|||||||
if rbdVol.JournalPool == "" {
|
if rbdVol.JournalPool == "" {
|
||||||
rbdVol.JournalPool = rbdVol.Pool
|
rbdVol.JournalPool = rbdVol.Pool
|
||||||
}
|
}
|
||||||
volJournal = journal.NewCSIVolumeJournal("default")
|
volJournal = journal.NewCSIVolumeJournal(CSIInstanceID)
|
||||||
j, err := volJournal.Connect(rbdVol.Monitors, rbdVol.RadosNamespace, cr)
|
j, err := volJournal.Connect(rbdVol.Monitors, rbdVol.RadosNamespace, cr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
Loading…
Reference in New Issue
Block a user