-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
@@ -341,6 +341,8 @@ namespace Replication | |||
unsigned charset, | |||
const char* schemaSearchPath, | |||
const char* sql); | |||
|
|||
void storeBlobs(Transaction* transaction, Firebird::IReplicatedRecord* record); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to keep declaration of all overloads in one place so they can be seen with one glance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't quite understand the remark. The method does not overload anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, my bad. storeBlobs
and storeBlob
are different names. Sorry.
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. |
No description provided.