couchbaselabs/go-couchbase — pull request #29 by DenizPiri (2013-10-26 15:16:14+00:00)
Title: Fixed the "defer" statement in Do() retry loop.

Encapsulated the code block that does the defer call within an anonymous
function. This way defer statement works properly and returns every connection
after each retry.