chuigda-wasteland / Pr65

决战的时刻到了!
The Unlicense
3 stars 0 forks source link

Abstracion barriers between `Partition` and `PartitionData` #6

Open chuigda opened 4 years ago

chuigda commented 4 years ago

As you shall see, the barrier between Partition and PartitionData is blurred by a bunch of things. Shall we have several encapsulations in PartitionData, or just let Partition use its raw fields?

chuigda commented 4 years ago

Just leave them as is, we will have plenty of time to refactor.

SchrodingerZhu commented 4 years ago

Can you briefly explain what situations PartitionData will be used?

chuigda commented 4 years ago

Can you briefly explain what situations PartitionData will be used?

In brief, a PartitionData is all metadata kept in memory, which should be LOCKED and consequentially UPDATED by compaction/explosion.