-
-
Notifications
You must be signed in to change notification settings - Fork 257
Move blob search logic in Replicator into a new method to prevent code duplication #8651
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
base: master
Are you sure you want to change the base?
Conversation
Note, |
I hope the template argument with |
What it will do if the record is not found on the target side and update to be converted into insert? |
Good question. So we have a choice - raise error on replica in (should be very) rare cases or continue to pollute repl logs with duplicated blobs in (should be much more) often cases. |
Only if it will not harm code readability. |
Or it could be warning, not error, with inserting a NULL into missing blob field - in a hope that next UPDATE will fix it. @dyemanov, what do you think ? |
Do you have on mind a next update with still unchanged BLOB value? |
Dumb question, isn't is ? |
Yes, it is a dumb question with obvious answer. That's why the optimization of unchanged BLOB transfer is attractive but cannot work in multimaster setting when update conflicts are possible. |
In the initial implementation (RDB v2.6 / v3.0) blob was replicated always if |
No description provided.