adjust data type

This commit is contained in:
Chris Lu
2021-08-12 17:54:34 -07:00
parent 7667d26ebf
commit 5469019852
4 changed files with 5 additions and 3 deletions

View File

@@ -313,6 +313,8 @@ func (ms *MasterServer) GetMasterConfiguration(ctx context.Context, req *master_
MetricsIntervalSeconds: uint32(ms.option.MetricsIntervalSec),
StorageBackends: backend.ToPbStorageBackends(),
DefaultReplication: ms.option.DefaultReplicaPlacement,
VolumeSizeLimitMB: uint32(ms.option.VolumeSizeLimitMB),
VolumePreallocate: ms.option.VolumePreallocate,
Leader: leader,
}

View File

@@ -35,7 +35,7 @@ type MasterOption struct {
Host string
Port int
MetaFolder string
VolumeSizeLimitMB uint
VolumeSizeLimitMB uint32
VolumePreallocate bool
// PulseSeconds int
DefaultReplicaPlacement string

View File

@@ -19,7 +19,7 @@ func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request)
RaftServer raft.Server
Stats map[string]interface{}
Counters *stats.ServerStats
VolumeSizeLimitMB uint
VolumeSizeLimitMB uint32
}{
util.Version(),
ms.Topo.ToMap(),