fix(unified-storage): track mode 5 correctly (#111234)

This commit is contained in:
Jean-Philippe Quéméner
2025-09-17 11:25:43 +00:00
committed by GitHub
parent 750547c862
commit 4f43761630
2 changed files with 2 additions and 0 deletions
@@ -58,6 +58,7 @@ func NewDualWriter(
// Force using storage only -- regardless of internal synchronization state
if mode == grafanarest.Mode5 {
builderMetrics.RecordDualWriterModes(gr.Resource, gr.Group, mode, grafanarest.Mode5)
return storage, nil
}
+1
View File
@@ -317,6 +317,7 @@ func InstallAPIs(
// Force using storage only -- regardless of internal synchronization state
if mode == grafanarest.Mode5 {
builderMetrics.RecordDualWriterModes(gr.Resource, gr.Group, mode, grafanarest.Mode5)
return storage, nil
}