<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Ryan,<br>
    <br>
    Wondered about that myself when the module was built, about why they
    would have two different mechanisms for reporting errors. I included
    both just for the sake of reporting all errors, but didn't see the
    lcb_get_last_error() triggering.<br>
    I guess we need the help of some libcouchbase devs here, or dig into
    the libcouchbase code to see when lcb_get_last_error() triggers and
    error.<br>
    <br>
    Best Regards,<br>
    <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
    <br>
    On 04/18/2013 12:54 AM, Ryan Bullock wrote:
    <blockquote
cite="mid:CAAcj4gXR0ZbzxnEwrZ0tpk6uCgQYYkoCJpJ2JPR7DBamBMcAag@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hey all,<br>
                <br>
              </div>
              I am doing some work with opensips + couchbase and have
              started on a patchset for the opensips couchbase driver to
              clean up a few things (better error outputs, etc) and make
              some changes that we require before going production.<br>
              <br>
            </div>
            One thing I am noticing are calls to lcb_get_last_error()
            after every operation, even though the error on the callback
            is being stored in last_error. In my quick testing the
            response from lcb_get_last_error() seems to always be
            success even if the operation failed (such as due to a
            connection failure), last_error shows the correct failure.<br>
            <br>
            I am wondering if the checks to lcb_get_last_error could be
            removed? Or are their instances where it would show an error
            not caught by last_error? I don't see many uses of
            lcb_get_last_error in the libcouchbase examples and they
            seem to all go off the error in the callback. The benefit I
            see is being able to more easily report useful and relevant
            errors.<br>
            <br>
          </div>
          Input welcome.<br>
          <br>
        </div>
        Regards,<br>
        <br>
        Ryan<br>
        <div>
          <div><br>
            <br>
          </div>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
    </blockquote>
  </body>
</html>