You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
d=db.load'1'd.some_value# 'bar'db.saveddo |dd| # does not save because d.some_value == 'bar', even though by now d.some_value == 'foo'dd.some_value='bar'end
The text was updated successfully, but these errors were encountered:
fix#146
the problem:
* one process loads a document
* another process loads the same document
* the first process changes and saves the doc
* the 2nd process makes a change that leads to dirty tracking not detecting a change
* the 2nd process does not actually save the doc and hence detects no write conflict
process 1:
```ruby
d = db.load '1'
d.some_value # 'bar'
db.save d do |dd|
dd.some_value = 'foo'
end
```
process 2:
```ruby
d = db.load '1'
d.some_value # 'bar'
db.save d do |dd| # does not save because d.some_value == 'bar', even though by now d.some_value == 'foo'
dd.some_value = 'bar'
end
```
process 1:
process 2:
The text was updated successfully, but these errors were encountered: