Skip to content

DB: Also migrate -shm and -wal to new name #3764 #5045 - #5459

Merged
guruz merged 1 commit into
masterfrom
multiple_journals_sqlite
Jan 16, 2017
Merged

guruz merged 1 commit into
masterfrom
multiple_journals_sqlite

Conversation

@guruz

@guruz guruz commented Jan 13, 2017

Copy link
Copy Markdown
Contributor

@guruz guruz added this to the 2.3.0 milestone Jan 13, 2017
@guruz
guruz requested review from ckamm and dragotin January 13, 2017 18:59
@mention-bot

Copy link
Copy Markdown

@guruz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dragotin, @ckamm and @ogoffart to be potential reviewers.

return false;
}
}
if( FileSystem::fileExists( newDbNameWal ) ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: could these methods be factored out and extracted to avoid repetition?

@SamuAlfageme

Copy link
Copy Markdown
Contributor

Lookin' neat 👍

@guruz
guruz merged commit 9d7425b into master Jan 16, 2017
@guruz
guruz deleted the multiple_journals_sqlite branch January 16, 2017 14:42
if( !FileSystem::remove(newDbNameWal, &error) ) {
qDebug() << "Database migration: Could not remove db WAL file" << newDbNameWal
<< "due to" << error;
return false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we could ignore this error and not return false. (everywhere on these new checks)

Because this is not a fatal error, is it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not fatal but would keep a stale file there. I don't know, i don't have a further opinion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants