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

Remove backward compatibility layer introduced in #6149 #6229

Closed

Conversation

bleskes
Copy link
Contributor

@bleskes bleskes commented May 19, 2014

PR #6149 changed the Versions.MATCH_ANY value from 0 to -3. This was done to allow 0 to be a valid external version. This commit removes the backward compatibility code from v2.0 and up.

@spinscale
Copy link
Contributor

do we still want to to use magic negative numbers for MATCH_ANY, NOT_FOUND and NOT_SET if we break bwc? having an enum represented by a byte and maybe a boolean indicating if a real version or the enum is written might work as well in the serialization?

@bleskes
Copy link
Contributor Author

bleskes commented May 19, 2014

@spinscale we actually only need to worry about MATCH_ANY. The rest isn't serializeed. So the stream level is easy (one added boolean). Not sure how the java api would like though .. now we have .setVersion(Versions.MATCH_ANY) ..

@s1monw
Copy link
Contributor

s1monw commented Jun 12, 2014

LGTM

@s1monw s1monw removed the review label Jun 12, 2014
@clintongormley
Copy link

@bleskes needs merging, no?

@clintongormley
Copy link

@bleskes still needs merging?

@clintongormley clintongormley added the :Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. label Nov 11, 2014
@javanna
Copy link
Member

javanna commented Mar 21, 2015

hey @bleskes this can be closed as we already removed all of the bw comp code from master right?

@bleskes bleskes force-pushed the zero_external_version_remove_bw branch 2 times, most recently from ed0ac86 to caf0ccf Compare March 23, 2015 20:10
@bleskes bleskes force-pushed the zero_external_version_remove_bw branch from caf0ccf to bdc10ec Compare March 23, 2015 20:32
@bleskes
Copy link
Contributor Author

bleskes commented Mar 23, 2015

@javanna not completely. Updated the PR to the latest master. Can you take a look?

@javanna
Copy link
Member

javanna commented Mar 24, 2015

LGTM

@s1monw
Copy link
Contributor

s1monw commented Mar 24, 2015

+1

@bleskes bleskes closed this in c6ce64a Mar 24, 2015
@bleskes bleskes deleted the zero_external_version_remove_bw branch March 24, 2015 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. >enhancement v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants