Skip to content

Update opreation is not atomic, a "pure update" is wanted #887

Description

@liyzay

Issue Basics

  • ObjectBox version (are using the latest version?): 2.5.1
  • Reproducibility: [always]

Reproducing the bug

Description

Update Opreation:

Box<User> testBox = App.getInstance().getBoxStore().boxFor(User.class);
User user = testBox.get(1);
user.setName("newName");
testBox.put(test);

Update opreation is NOT atomic.
If I delete data in one thread and update data in another thread then the deleted data might be save again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions