Skip to content

Commit

Permalink
journal: fix empty csiCreationTimeKey value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
iPraveenParihar authored and mergify[bot] committed Aug 13, 2024
1 parent 869aace commit e150fd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/journal/volumegroupjournal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e150fd9

Please sign in to comment.