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

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