-
Notifications
You must be signed in to change notification settings - Fork 15
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
Lock Version not incrementing #15
Comments
@nikhilbansal Is it possible that since you're not changing any fields, mongoid is not calling update, thus the _lock_version is not incremented? Could you provide a test which breaks? |
@burgalon I ran the spec. And 16 specs out of 38 failed. I have already tried changing the fields, but still doesn't work. One such case was. |
@nikhilbansal Specs are passing here with Mongoid 3. |
We are using mongoid 4.0.2 |
@nikhilbansal Indeed mongoid 4.0.2 seems to break. Can you look into the issue and possibly submit a pull request? |
@burgalon I am still getting this issue with mongoid 5.0.2.. Any patch to it? |
Hi @Sweetymehta can you submit a pull request? |
person = Person.create!(:name => 'xyz') - No validations in the model
Here the _lock_version is 1
person.save
Here the _lock_version is still 1
Am I missing something ? or is this a bug. Using mongo 2.4.13 with mongoid 3
The text was updated successfully, but these errors were encountered: