mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
ignore typed errors correctly in list cache layer (#10879)
bonus write bucket metadata cache with enough quorum Possible fix for #10868
This commit is contained in:
@@ -19,13 +19,13 @@ package cmd
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
"github.com/klauspost/compress/s2"
|
||||
"github.com/minio/minio/cmd/logger"
|
||||
"github.com/tinylib/msgp/msgp"
|
||||
@@ -816,6 +816,7 @@ type metacacheBlock struct {
|
||||
}
|
||||
|
||||
func (b metacacheBlock) headerKV() map[string]string {
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
v, err := json.Marshal(b)
|
||||
if err != nil {
|
||||
logger.LogIf(context.Background(), err) // Unlikely
|
||||
|
||||
Reference in New Issue
Block a user