Merge lp://qastaging/~cmiller/desktopcouch/preconditionfailed-lp707321 into lp://qastaging/desktopcouch

Proposed by Chad Miller
Status: Merged
Approved by: Chad Miller
Approved revision: 269
Merged at revision: 268
Proposed branch: lp://qastaging/~cmiller/desktopcouch/preconditionfailed-lp707321
Merge into: lp://qastaging/desktopcouch
Diff against target: 170 lines (+104/-15)
2 files modified
desktopcouch/records/database.py (+14/-10)
desktopcouch/records/tests/test_mocked_server.py (+90/-5)
To merge this branch: bzr merge lp://qastaging/~cmiller/desktopcouch/preconditionfailed-lp707321
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve
Eric Casteleijn (community) Approve
Review via email: mp+56246@code.qastaging.launchpad.net

Commit message

Change creation of the Database object to EAFP. LBYL is impossible with HTTP and no locking. If create-flag is set, then go do it and swallow an exception about it already existing. (LP: #707321)

In addition, simplify that code so it makes fewer round-trips to the server.

To post a comment you must log in.
Revision history for this message
Eric Casteleijn (thisfred) wrote :

Looks good, let's land it and run it past one of the bug reporters to see if it fixes it for them.

review: Approve
269. By Chad Miller

Attach bug.

Revision history for this message
Roberto Alsina (ralsina) wrote :

Looks good to me :-)

review: Approve

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