Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

C API - meaning of function return codes for bulk operations

2 replies [Last post]
  • Login or register to post comments
Thu, 02/14/2013 - 16:08
ari
Offline
Joined: 05/16/2012
Groups: None

There are many functions in libcouchbase that take an array of commands (e.g. lcb_get, lcb_store) and return a single lcb_error_t. It's not clear to me what this return value represents. For example, what if I lcb_get 100 keys and trigger both an LCB_KEY_ENOENT and an LCB_ENOMEM? Also, when would you rely on this error code as opposed to the one you get in the callbacks?

Top
  • Login or register to post comments
Fri, 02/15/2013 - 00:54
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

the operation itself just schedule the command by building a packet and copying it into internal buffers. therefore you will get the status of this action, but actual response status comes in the callback along with the response value. this allows you to receive status for rack command separately

__________________

Find me on FreeNode IRC in #libcouchbase channel

Top
  • Login or register to post comments
Fri, 02/15/2013 - 08:58
ari
Offline
Joined: 05/16/2012
Groups: None

Thanks for the answer. Which errors should I expect to handle for this?

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker