cloudberry icon indicating copy to clipboard operation
cloudberry copied to clipboard

Replace std::shared_ptr<File> by std::unique_ptr<File>

Open gfphoenix78 opened this issue 8 months ago • 0 comments

Shared smart pointer will introduce additional cost, and it also make the ownership complicated. Use unique pointer to make the ownership explicitly visible.

Test Plan

  • [ ] Unit tests added/updated
  • [ ] Integration tests added/updated
  • [ ] Passed make installcheck
  • [ ] Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


gfphoenix78 avatar Apr 18 '25 05:04 gfphoenix78