Merge lp://staging/~thisfred/u1db/remove-local-gen-before-sync into lp://staging/u1db

Proposed by Eric Casteleijn
Status: Rejected
Rejected by: Eric Casteleijn
Proposed branch: lp://staging/~thisfred/u1db/remove-local-gen-before-sync
Merge into: lp://staging/u1db
Diff against target: 164 lines (+18/-23)
5 files modified
include/u1db/u1db_internal.h (+1/-2)
src/u1db.c (+1/-1)
src/u1db_sync_target.c (+5/-5)
u1db/tests/c_backend_wrapper.pyx (+3/-5)
u1db/tests/test_sync.py (+8/-10)
To merge this branch: bzr merge lp://staging/~thisfred/u1db/remove-local-gen-before-sync
Reviewer Review Type Date Requested Status
Samuele Pedroni Disapprove
dobey (community) Needs Fixing
Review via email: mp+119642@code.staging.launchpad.net

Commit message

removed unused parameter

Description of the change

removed unused parameter

To post a comment you must log in.
Revision history for this message
Samuele Pedroni (pedronis) :
review: Approve
Revision history for this message
dobey (dobey) wrote :

01:31:04 O: [ 33%] Building C object src/CMakeFiles/u1db.dir/u1db.c.o
01:31:04 E: /mnt/tarmac/cache/u1db/trunk/src/u1db.c: In function ‘u1db_sync’:
01:31:04 E: /mnt/tarmac/cache/u1db/trunk/src/u1db.c:2092:5: error: too many arguments to function ‘u1db__sync_db_to_target’
01:31:04 E: In file included from /mnt/tarmac/cache/u1db/trunk/src/u1db.c:28:0:
01:31:04 E: /mnt/tarmac/cache/u1db/trunk/include/u1db/u1db_internal.h:544:5: note: declared here
01:31:04 E: make[3]: *** [src/CMakeFiles/u1db.dir/u1db.c.o] Error 1
01:31:04 E: make[2]: *** [src/CMakeFiles/u1db.dir/all] Error 2
01:31:04 E: make[1]: *** [CMakeFiles/check-valgrind.dir/rule] Error 2
01:31:04 E: make: *** [check-valgrind] Error 2

review: Needs Fixing
379. By Eric Casteleijn

remerged trunk:

380. By Eric Casteleijn

fixed leftover call:

Revision history for this message
Eric Casteleijn (thisfred) wrote :

fixed

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/15/2012 12:57 AM, Eric Casteleijn wrote:
> Eric Casteleijn has proposed merging
> lp:~thisfred/u1db/remove-local-gen-before-sync into lp:u1db.
>
> Requested reviews: Ubuntu One hackers (ubuntuone-hackers)
>
> For more details, see:
> https://code.launchpad.net/~thisfred/u1db/remove-local-gen-before-sync/+merge/119642
>
> removed unused parameter
>

This was meant to be an OUT parameter for sync (the return value from
the Python code).

The idea is that you want to be able to get the local generation of
the database after the sync, so that you can call
'whats_changed(before_sync_gen)' without having a race condition.

It may be that we are missing tests doing that sort of thing, so the
variable never got set, because we didn't realize that we should be.

But it *was* meant to be used.

Is there some other change that invalidates this?

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlArVA4ACgkQJdeBCYSNAAO1PwCfZ5fBV5pC1d6qIpkXevcdSItV
P/MAn0A5XKtcqWN7+r5+XEgCUG6vAtGO
=0eye
-----END PGP SIGNATURE-----

Revision history for this message
Samuele Pedroni (pedronis) wrote :

so it seems it had a thought use

review: Abstain
Revision history for this message
Samuele Pedroni (pedronis) :
review: Disapprove

Unmerged revisions

380. By Eric Casteleijn

fixed leftover call:

379. By Eric Casteleijn

remerged trunk:

378. By Eric Casteleijn

removed unused parameter

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches