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

REQUEST_TX_COMMIT returns same RIDs in created and updated record list #4660

Closed
whatyouhide opened this issue Jul 27, 2015 · 4 comments
Closed
Assignees
Labels

Comments

@whatyouhide
Copy link

When I create a record in a REQUEST_TX_COMMIT operation and the record gets created with a version > 0, then the generated RID of the new record appears in both the "created" and "updated" list in the response.

For example, if I create a record like this:

{
  rid: #-1:-2,
  fields: {a: 1},
}

the response of REQUEST_TX_COMMIT will be something like:

1,      // count of created records
#-1:-2, // client rid
#9:0,   // server rid
1,      // count of updated records
#-1:-2, // server rid
1,      // version
...

/cc @tglman

@lvca lvca added this to the 2.1 GA milestone Jul 28, 2015
@tglman
Copy link
Member

tglman commented Jul 30, 2015

to solve this, i need to update the protocol or unsure that the create has every time version 0 as result, i'll check the version force as first solution so it will avoid to change the binary protocol

@tglman
Copy link
Member

tglman commented Jul 31, 2015

with this commit:def2c06 the version of new record will start from 0, so will no sent anymore an update as result of create, closing.

@tglman tglman closed this as completed Jul 31, 2015
@whatyouhide
Copy link
Author

Great @tglman, we'll get this in 2.1 right?

@tglman
Copy link
Member

tglman commented Jul 31, 2015

yes

@lvca lvca modified the milestone: 2.1 GA Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants