Skip to content

Commit

Permalink
gee wiz, the damage an extra 50s load time can do
Browse files Browse the repository at this point in the history
  • Loading branch information
gulducat committed Dec 6, 2024
1 parent 6046ef2 commit 1013b4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/hostvolumemanager/volume_fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ func UpdateVolumeMap(volumes VolumeMap, name string, vol *structs.ClientHostVolu

// WaitForFirstFingerprint implements client.FingerprintingPluginManager
func (hvm *HostVolumeManager) WaitForFirstFingerprint(ctx context.Context) <-chan struct{} {
// the fingerprint manager puts batchFirstFingerprintsTimeout (50 seconds)
// on the context that it sends to us here so we don't need another
// timeout. we just need to cancel to report when we are done.
ctx, cancel := context.WithCancel(ctx)
defer cancel()
volumes, err := hvm.restoreFromState(ctx)
if err != nil {
hvm.log.Error("failed to restore state", "error", err)
Expand Down

0 comments on commit 1013b4f

Please sign in to comment.