Merge lp:~thisfred/u1db/fix-local-gen-before-sync into lp:u1db
Proposed by
Eric Casteleijn
Status: | Merged |
---|---|
Approved by: | Eric Casteleijn |
Approved revision: | 384 |
Merged at revision: | 381 |
Proposed branch: | lp:~thisfred/u1db/fix-local-gen-before-sync |
Merge into: | lp:u1db |
Diff against target: |
123 lines (+28/-12) 6 files modified
include/u1db/u1db.h (+6/-2) include/u1db/u1db_internal.h (+5/-0) src/u1db.c (+2/-6) u1db/tests/c_backend_wrapper.pyx (+4/-2) u1db/tests/test_c_backend.py (+6/-1) u1db/tests/test_sync.py (+5/-1) |
To merge this branch: | bzr merge lp:~thisfred/u1db/fix-local-gen-before-sync |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel (community) | Approve | ||
Review via email: mp+119705@code.launchpad.net |
Commit message
Fixed local_gen to be an OUT parameter only, and return it from sync()
Description of the change
Fixed local_gen to be an OUT parameter only, and return it from sync()
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/15/2012 2:42 PM, Eric Casteleijn wrote: /code.launchpad .net/~thisfred/ u1db/fix- local-gen- before- sync/+merge/ 119705
> Eric Casteleijn has proposed merging
> lp:~thisfred/u1db/fix-local-gen-before-sync into lp:u1db.
>
> Requested reviews: Ubuntu One hackers (ubuntuone-hackers)
>
> For more details, see:
> https:/
>
> Fixed local_gen to be an OUT parameter only, and return it from
> sync()
>
// fprintf(stderr, "Starting\n"); before_ sync == NULL) {
- - if (db == NULL || target == NULL || local_gen_
+ if (db == NULL || target == NULL) {
// fprintf(stderr, "DB, target, or local are NULL\n");
You should probably still check that "local_gen == NULL" here, so that
we generate an INVALID_PARAMETER error if it is not supplied. Or are
you intentionally making it optional? If so, you should update the
docstring to indicate that.
The rest looks good.
merge: approve
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
rrJsACgkQJdeBCY SNAAPoygCgnAVKF l2EoKukAwlohz/ DRhsd AqJR4S5yfIIlgC9 tQDedtt
Version: GnuPG v1.4.12 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAlA
5bsAn3vlT/
=dSwQ
-----END PGP SIGNATURE-----