journal: fix empty csiCreationTimeKey value

This commit fixes the issue where the `csiCreationTimeKey`
field was missing during the rebuilding of the
`VolumeGroupJournalConfig` struct in the `Connect()` method,
which led to the `csi.creationtime` key not being stored in
the omap.

Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
Praveen M 2024-08-12 11:10:08 +05:30 committed by mergify[bot]
parent 869aaced7d
commit e150fd986b

View File

@ -130,6 +130,7 @@ func (vgc *VolumeGroupJournalConfig) Connect(
vgjc := &volumeGroupJournalConnection{} vgjc := &volumeGroupJournalConnection{}
vgjc.config = &VolumeGroupJournalConfig{ vgjc.config = &VolumeGroupJournalConfig{
Config: vgc.Config, Config: vgc.Config,
csiCreationTimeKey: vgc.csiCreationTimeKey,
} }
conn, err := vgc.Config.Connect(monitors, namespace, cr) conn, err := vgc.Config.Connect(monitors, namespace, cr)
if err != nil { if err != nil {