Page MenuHomePhabricator

[SQLite] unify `restoreFromMainCompaction` on platforms
AcceptedPublic

Authored by kamil on Thu, Apr 3, 2:42 AM.

Details

Reviewers
bartek
Summary

ENG-10489.

This code is hard to read because of the number of directives, and is likely to change in the future because of Run the migrations during backup restoration.
For now, I am standardizing this to follow the web approach, to make testing easier.

Depends on D14517

Test Plan

Tested that this works on both web and native

Diff Detail

Repository
rCOMM Comm
Branch
backup-publish
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Thu, Apr 3, 3:12 AM
kamil edited the summary of this revision. (Show Details)
kamil added inline comments.
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
3339–3342

We follow web approach so this comment is not needed anymore

3362–3380

executeQuery does exactly the same

3423–3432

Previously, there was a bug, for web mainCompactionPath wasn't deleted

This revision is now accepted and ready to land.Thu, Apr 3, 3:50 AM