0
typedef struct SSTableVersion {
  char     dbFName[TSDB_DB_FNAME_LEN];
  char     stbName[TSDB_TABLE_NAME_LEN];
  uint64_t dbId;
  uint64_t suid;
  int16_t  sversion;
  int16_t  tversion;
  int32_t  smaVer;
} SSTableVersion;

it is used in ctgUpdateRentStbVersion to update super table version . but what is the version used for ?

Yu Chen
  • 70
  • 1
  • 5

1 Answers1

0

currently I could just tell you the sversion is a record that you operate super table .everytime you run a "alter stable" ,sversion would add 1 .

In TDengine database , what is SSTableVersion used for I guess it is to compare the local meta as taosd meta to decide if pull the newest meta from taosd .

I will think about this more and give you answer .

Yu Chen
  • 70
  • 1
  • 5