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:
true1064 2024-03-15 17:17:13 +08:00 committed by AmazingChi
parent 2832f093f9
commit ff8b40abae

View File

@ -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