weixin_39883256
weixin_39883256
2020-12-07 05:49

WT-2275 Convert a table URI truncate into a range truncate.

Please review this branch. The ticket revealed a bug keeping files and metadata in sync during an abort in a truncate. suggested we could consider removing support for URI truncate in favor of drop and create. In thinking about that, I came up with this solution instead.

If we consider that a truncate is emptying the content of a table, it avoids the metadata/file interactions to translate a URI based truncate into a range truncate with a start cursor on the first item. It also removes a lot of code.

该提问来源于开源项目:wiredtiger/wiredtiger

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答