Move blob search logic in Replicator into a new method to prevent code duplication#8651
Move blob search logic in Replicator into a new method to prevent code duplication#8651Noremos wants to merge 4 commits intoFirebirdSQL:masterfrom
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.