Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple rollbacks #148

Merged
merged 7 commits into from
Sep 11, 2013
Merged

Multiple rollbacks #148

merged 7 commits into from
Sep 11, 2013

Conversation

finnschiermer
Copy link
Contributor

Allows multiple rollbacks, throws a runtime error on multiple commits

@@ -433,6 +433,9 @@ void SharedGroup::end_read() TIGHTDB_NOEXCEPT

void SharedGroup::commit()
{
if (!m_group.is_attached()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why throw on multiple commits?

@@ -350,6 +350,8 @@ bool SharedGroup::has_changed() const TIGHTDB_NOEXCEPT

void SharedGroup::end_read() TIGHTDB_NOEXCEPT
{
if (!m_group.is_attached()) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

return should be on seperate line. (aids debugging and visual flow)

@bmunkholm
Copy link
Contributor

+1

finnschiermer pushed a commit that referenced this pull request Sep 11, 2013
@finnschiermer finnschiermer merged commit f16a394 into realm:master Sep 11, 2013
@finnschiermer finnschiermer deleted the multiple_rollbacks branch September 25, 2013 12:29
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants