Skip to content

Commit

Permalink
feat(tianmu) Add upgrade directory (#510) (#511)
Browse files Browse the repository at this point in the history
* feat(tianmu) Add upgrade directory (#510)

* Optimize the structure of DPN to support memory alignment
  • Loading branch information
konghaiya authored Sep 20, 2022
1 parent 208f79d commit 08f5ae5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/tianmu/core/dpn.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ struct DPN final {
uint8_t delete_compressed : 1;
uint8_t data_compressed : 1;
uint8_t no_compress : 1;
uint8_t padding[1]; // Memory aligned padding has no practical effect
uint8_t paddingBit : 1; // Memory aligned padding has no practical effect
uint8_t padding[7]; // Memory aligned padding has no practical effect

uint32_t base; // index of the DPN from which we copied, used by local pack
uint32_t numOfRecords; // number of records
Expand Down
7 changes: 7 additions & 0 deletions storage/tianmu/upgrade/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The Tianmu engine needs an upgrade tools, which provides some tools for
upgrade Tianmu from an old version to a new version.
The new version maybe changes the format of meta-data or format of data.
These format change will lead the new version of StoneDB can read the old-format data.
Therefore, StoneDB should provide an upgrading solution.

All our information about Tianmu upgrading is in this directory.

0 comments on commit 08f5ae5

Please sign in to comment.