ext/libcouchbase/src/operations/durability-seqno.cc in libcouchbase-1.0.4 vs ext/libcouchbase/src/operations/durability-seqno.cc in libcouchbase-1.1.0

- old
+ new

@@ -111,9 +111,13 @@ cmd.vbid = ent.vbid; cmd.cmdflags = LCB_CMD_F_INTERNAL_CALLBACK; ent.callback = seqno_callback; size_t nservers = ent.prepare(servers); + if (nservers == 0) { + ret_err = LCB_DURABILITY_ETOOMANY; + continue; + } for (size_t jj = 0; jj < nservers; jj++) { lcb_error_t err; cmd.server_index = servers[jj]; err = lcb_observe_seqno3(instance, &ent.callback, &cmd); if (err == LCB_SUCCESS) {