Skip to content
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

[Bugfix] Multiple service versions in the cluster. #191

Merged
merged 1 commit into from
Apr 6, 2015

Conversation

kobolog
Copy link
Member

@kobolog kobolog commented Apr 4, 2015

When there are more than one service version in the cluster, properly partition service metadata by version and resolve only the latest version. We'll add an ability to request specific versions later.

@kobolog
Copy link
Member Author

kobolog commented Apr 4, 2015

@3Hren @antmat: WTB review!

kobolog pushed a commit to cocaine/cocaine-plugins that referenced this pull request Apr 4, 2015
@kobolog kobolog force-pushed the kobolog/multiversion-cluster branch from 91bcaac to c1f5682 Compare April 4, 2015 22:19
kobolog pushed a commit to cocaine/cocaine-plugins that referenced this pull request Apr 4, 2015
@kobolog
Copy link
Member Author

kobolog commented Apr 5, 2015

@kobolog kobolog force-pushed the kobolog/multiversion-cluster branch 2 times, most recently from a5168e1 to d839919 Compare April 6, 2015 00:36
kobolog pushed a commit to cocaine/cocaine-plugins that referenced this pull request Apr 6, 2015
@kobolog kobolog force-pushed the kobolog/multiversion-cluster branch from d839919 to aa29b3f Compare April 6, 2015 01:14
@@ -87,8 +87,14 @@ class locator_t::remote_t:
virtual
~remote_t() {
for(auto it = active.begin(); it != active.end(); ++it) {
parent->m_gateway->cleanup(uuid, *it);
if(!parent->m_gateway->cleanup(uuid, *it)) tuple::invoke(*it,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to use lambdas? I don't think it's much more readable then

if(!parent->m_gateway->cleanup(uuid, *it)) {
  //Even with comment about std::get<1>(*it) it's shorted than lambda.
   parent->m_protocol[name].erase(std::get<1>(*it));
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually parent->m_protocol[std::get<0>(*it)].erase(std::get<1>(*it));, not extremely readable, I must say.

@antmat
Copy link
Contributor

antmat commented Apr 6, 2015

LGTM

@kobolog kobolog force-pushed the kobolog/multiversion-cluster branch from aa29b3f to 76a9fc8 Compare April 6, 2015 16:00
kobolog pushed a commit that referenced this pull request Apr 6, 2015
[Bugfix] Multiple service versions in the cluster.
@kobolog kobolog merged commit 7f13380 into master Apr 6, 2015
@kobolog kobolog deleted the kobolog/multiversion-cluster branch April 6, 2015 16:17
kobolog pushed a commit to cocaine/cocaine-plugins that referenced this pull request Apr 7, 2015
3Hren pushed a commit that referenced this pull request Aug 18, 2017
It was decided that ACL for storage will be stored (packed/unpacked)
with integer keys as it was in previous releases, as it is a bunch of
ACL in "integer keys" format already in the wild out there.
3Hren pushed a commit that referenced this pull request Aug 18, 2017
It was decided that ACL for storage will be stored (packed/unpacked)
with integer keys as it was in previous releases, as it is a bunch of
ACL in "integer keys" format already in the wild out there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants