mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
refactor(masterclient): add new field in the client's response of retrieving the partition view
indicating whether the volume is read-only. close:#21938435 Signed-off-by: true1064 <tangjingyu@oppo.com>
This commit is contained in:
parent
2832f093f9
commit
ff8b40abae
@ -188,7 +188,7 @@ func (dpMap *DataPartitionMap) updateResponseCache(needsUpdate bool, minPartitio
|
||||
return
|
||||
}
|
||||
|
||||
func (dpMap *DataPartitionMap) updateCompressCache(needsUpdate bool, minPartitionID uint64, volType int) (body []byte, err error) {
|
||||
func (dpMap *DataPartitionMap) updateCompressCache(needsUpdate bool, minPartitionID uint64, vol *Vol) (body []byte, err error) {
|
||||
cachedBody := dpMap.getDataPartitionCompressCache()
|
||||
if len(cachedBody) != 0 && !needsUpdate {
|
||||
body = cachedBody
|
||||
|
||||
Loading…
Reference in New Issue
Block a user