1. paintcan
  2. pylibcb

Commits

Sebastian Hubbard  committed 8e46787

should set context->result whenever possible

  • Participants
  • Parent commits cc27264
  • Branches default

Comments (0)

Files changed (1)

File pylibcb.c

View file
 		   libcouchbase_cas_t cas) {
   if (rip_ticket((int *) cookie) != context->callback_ticket)
     return 0;
+  context->result = error;
 
   switch (error) {
   case LIBCOUCHBASE_SUCCESS:
   case LIBCOUCHBASE_KEY_ENOENT:
-    context->result = error;
     break;
   case LIBCOUCHBASE_ENOMEM:
     CB_EXCEPTION(OutOfMemory, LIBCOUCHBASE_ENOMEM);
 		   libcouchbase_cas_t cas) {
   if (rip_ticket((int *) cookie) != context->callback_ticket)
     return 0;
+  context->result = error;
 
   /* something here to pass on successes/failures up the chain */
   
 		      libcouchbase_size_t nkey) {
   if (rip_ticket((int *) cookie) != context->callback_ticket)
     return 0;
+  context->result = error;
   
   /* something here to pass on successes/failures up the chain */