rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

[Enhancement] Reduce unnecessary switches

Open LetLetMe opened this issue 2 years ago • 0 comments

Before Creating the Enhancement Request

  • [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

Rocksdb cq升级过程中有一些判断是否需要转换元数据和offset的开关,之前处于保护的逻辑添加了这些开关,但是似乎有点太多了。现在把他们都去掉,统一使用storeType这个开关,也就是当storeType=defaultRocksdb时,会统一校验元数据和offset是否需要转换

In the process of upgrading RocksDB CQ, there were several switches added to determine whether metadata and offsets needed conversion. These switches were initially added as a protective measure, but it seems there are too many of them now. We are now removing all of them and using a single switch, storeType. When storeType=defaultRocksdb, it will uniformly check whether metadata and offsets need conversion.

Motivation

nothing

Describe the Solution You'd Like

nothing

Describe Alternatives You've Considered

nothing

Additional Context

nothing

LetLetMe avatar Oct 15 '24 06:10 LetLetMe