From ff5077440be033525b29d483e847878cd8425ac1 Mon Sep 17 00:00:00 2001 From: Praveen M Date: Mon, 12 Aug 2024 11:10:08 +0530 Subject: [PATCH] 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 --- internal/journal/volumegroupjournal.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/journal/volumegroupjournal.go b/internal/journal/volumegroupjournal.go index 8f81c0b4b07..7d6a2b77e2e 100644 --- a/internal/journal/volumegroupjournal.go +++ b/internal/journal/volumegroupjournal.go @@ -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 {