fix(unified-storage): track mode 5 correctly (#111234)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user