-
Notifications
You must be signed in to change notification settings - Fork 981
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
Refactor initialization phase of transaction #790
Conversation
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
ecd24c3
to
9de9615
Compare
src/server/transaction.cc
Outdated
/** | ||
* | ||
* There are 4 options that we consider here: | ||
* a. T spans a single shard and its not multi. |
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.
use consistent notion for transaction: for example, Tx
instead of T and Trans
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.
I didn't touch you comments at all yet
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.
oh, I thought their are yours. in that case the comments are perfect 🙃
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
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.
My only ask here: please try to do as little functional changes as possible for the refactoring PR,
and do all the functional changes in the subsequent PRs
There are no functional changes in this PR, except that we have a new |
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
InitByArgs is 200+ LOC and I need to extend it to support different multi-transaction modes, so I decided to refactor it a little, else it'll become an unmanageable mess
I've split it into multiple commits, each of them encompasses one or two changes