Permalink
Commits on Sep 27, 2016
  1. Update release metadata for 2.6.3

    Change-Id: I909530232540dbb56f6843db3ad2dc2786c8c70b
    Reviewed-on: http://review.couchbase.org/68057
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    mnunberg committed with mnunberg Sep 27, 2016
Commits on Sep 17, 2016
  1. CCBC-717: Fail early if bucket name is empty

    Change-Id: I1ff2e15763e6f5d94a49c224b9b4b3f7321642c9
    Reviewed-on: http://review.couchbase.org/67645
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    mnunberg committed with mnunberg Sep 13, 2016
Commits on Sep 16, 2016
  1. CCBC-721: Fix invalid memory access for json apis w/no rows

    This fixes a bug where the JSON parser would read from garbage memory
    when receiving a multi-part response with no rows
    
    Change-Id: I7f877dcf61e5b0e8ac14b25cadd15e717b04121d
    Reviewed-on: http://review.couchbase.org/67745
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    mnunberg committed with mnunberg Sep 16, 2016
Commits on Sep 13, 2016
  1. CCBC-568: Allow to adjust read bytes per I/O iteration

    This solves some bottlenecking and congestion issues for applications
    where processing speed is the bottleneck rather than network speed.
    Applications can use the `read_chunk_size` setting in the connection
    string and set it to a byte value.
    
    Change-Id: I0b7c2b2ccc027173ad931f4f4b91d9bc0869b419
    Reviewed-on: http://review.couchbase.org/67211
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    mnunberg committed with mnunberg Aug 30, 2016
  2. CCBC-718: add SUBDOC_F_MKDOCUMENT and GET_COUNT

    This adds the GET_COUNT and MKDOC options. `GET_COUNT` retrieves the
    number of items in an array or dictionary; MKDOC is another flag (like
    MKDIR_P) which will create the document if it does not exist.
    
    This commit also includes tests for the features, alongside an upgrade
    to a newer CouchbaseMock version
    
    Change-Id: I1fd5a9a910d37f9933f80b0297864683e9572bbd
    Reviewed-on: http://review.couchbase.org/67213
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    mnunberg committed with mnunberg Aug 30, 2016
  3. Protocol addition definitions for subdoc

    Change-Id: Icc2751095b485d79964768ecb5979326493a421e
    Reviewed-on: http://review.couchbase.org/67212
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Brett Lawson <brett19@gmail.com>
    mnunberg committed with mnunberg Aug 30, 2016
Commits on Aug 16, 2016
  1. Fix several warnings found by static analysis

    Change-Id: I81de79c6b250e1becf06c1966d004191e4b43d3b
    Reviewed-on: http://review.couchbase.org/66806
    Tested-by: buildbot <build@couchbase.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Mark Nunberg <mark.nunberg@couchbase.com>
    avsej committed Aug 16, 2016
Commits on Aug 6, 2016
  1. Use ntohll/htonll for CAS values

    This makes it so that CAS is always encoded/decoded properly according
    to network byte order. This was previously not an issue as CAS was
    essentially an application-local opaque value. This has changed because
    N1QL now also exposes the CAS and it is expected to be able to
    interoperate between the two.
    
    Change-Id: I63fb9670fc48ff469e0c1dcaaeab23fc638ef418
    Reviewed-on: http://review.couchbase.org/66558
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Aug 5, 2016
  2. switch mock environment json to jsoncpp

    I initially needed this as a prereq to another change, which I later
    discovered I didn't really need. Nevertheless this is a useful change
    anyway as it reduces code size
    
    Change-Id: I085edb9da41ed34cbb8f15a74d95860cb5774c9b
    Reviewed-on: http://review.couchbase.org/66557
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Aug 5, 2016
  3. CCBC-714: Link to latest doc links

    Change-Id: I39c58ebbe7152ce4121318bc6b49a0862e7eaebb
    Reviewed-on: http://review.couchbase.org/66363
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Aug 1, 2016
Commits on Jul 26, 2016
  1. Update release metadata for 2.6.2

    Change-Id: Iae78435060f3cbe4d900b1ff6263130983246054
    Reviewed-on: http://review.couchbase.org/66222
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    mnunberg committed with mnunberg Jul 26, 2016
  2. Remove append anti-example

    This anti-example was rather confusing, and duplicating the work done in
    the devguide.
    
    Change-Id: Ibace6c490cfcd5b831533672ac6dceb35c4474e5
    Reviewed-on: http://review.couchbase.org/66221
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Mark Nunberg <mark.nunberg@couchbase.com>
    mnunberg committed with mnunberg Jul 18, 2016
Commits on Jul 19, 2016
  1. CCBC-545: Set default storage mode for storage

    This eliminates the need for specifing operation = LCB_SET for a simple
    upsert.
    
    Change-Id: If80a703fc82f980233d0fd516b3a76929d2103a5
    Reviewed-on: http://review.couchbase.org/65880
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 16, 2016
  2. CCBC-641: Log HTTP URLs

    This logs some HTTP request information at the TRACE level.
    
    Change-Id: If30ab8d50e3d540dbfacc0facb58a7ac23132924
    Reviewed-on: http://review.couchbase.org/65879
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 16, 2016
  3. CCBC-567: Gracefully handle too many sockets > FD_SETSIZE

    This will make the select plugin fail upon socket creation, rather than
    cause strange errors later on.
    
    Change-Id: Ib8748e6b0d80ea40a61074f7a80aebb176385c2e
    Reviewed-on: http://review.couchbase.org/65877
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 16, 2016
Commits on Jul 16, 2016
  1. CCBC-708: Fix typo in cbc-n1qlback manpage

    Change-Id: Ia7efbea4cdf06cbf5054f0caf22b0f7f8339ea6a
    Reviewed-on: http://review.couchbase.org/65876
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 16, 2016
  2. CCBC-637: Add ttl option to pillowfight

    This option is present as `-e` or `--expiry`.
    
    Change-Id: I63da3b9cef7d50d36c7b4dc445c4fc33769fcff8
    Reviewed-on: http://review.couchbase.org/65875
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 16, 2016
  3. fix pillowfight markdown formatting

    Change-Id: Idf0570974d2fc7ecae94c8e0ce22f2939a184fdb
    Reviewed-on: http://review.couchbase.org/65874
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 16, 2016
Commits on Jul 15, 2016
  1. CCBC-707: mcserver: use ->settings, not ->instance->settings

    This becomes useful when the server is being destroyed and cleaning up
    some memory. It must not make the assumption that the parent instance
    still actually exists.
    
    Change-Id: I0ce942d7fe0648bc514f25f2928b3882307a4243
    Reviewed-on: http://review.couchbase.org/65811
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 14, 2016
  2. don't abort if no callback handler installed

    in theory, abort would be fine if handling was universal, but in this
    case it seems to only apply to commands which are a bit newer
    
    Change-Id: Id484f64ab9a3dc97611e15b2488139c78eaaeae1
    Reviewed-on: http://review.couchbase.org/65810
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 11, 2016
  3. retrychk: properly classify subdoc commands

    Change-Id: I08695b6547dd71dc00115b2bb24eac240e4b90c9
    Reviewed-on: http://review.couchbase.org/65809
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jul 11, 2016
Commits on Jul 6, 2016
  1. Generate appropriate zipball name for VC14

    Change-Id: I911bb82da4eb878cae04f81180c4f64b595f01e8
    Reviewed-on: http://review.couchbase.org/65548
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    mnunberg committed with mnunberg Jul 6, 2016
  2. Do not overwrite CAS by seqno when using lcb_storedur3()

    Change-Id: Ia864090375d7fe83b9bf65fa9f27ee02ccd3fbc1
    Reviewed-on: http://review.couchbase.org/65528
    Tested-by: buildbot <build@couchbase.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Mark Nunberg <mark.nunberg@couchbase.com>
    avsej committed with mnunberg Jul 6, 2016
Commits on Jun 20, 2016
  1. Update release metadata for version 2.6.1

    Change-Id: If1029950910158311df1272e8f15b473aee1d89e
    Reviewed-on: http://review.couchbase.org/65065
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Subhashni Balakrishnan <b.subhashni@gmail.com>
    mnunberg committed with mnunberg Jun 20, 2016
  2. More index management fixes...

    - Don't actually append to buffer when do_copy is false. First the
      buffer size is calculated and only then are its contents appended
    - Better handling of index fields. This avoids the case where the fields
      list is empty (error!).
    
    I would like to add more tests to this API, but this API was designed to
    be extremely "simple", and it therefore doesn't have other flags, hooks,
    and similar with which to perform proper tests.
    
    Change-Id: I8583ecec95fdad18a3f986443e925c26cfea4629
    Reviewed-on: http://review.couchbase.org/65059
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Mark Nunberg <mark.nunberg@couchbase.com>
    mnunberg committed with mnunberg Jun 20, 2016
Commits on Jun 16, 2016
  1. n1x: Default to using current bucket name if no keyspace specified

    Change-Id: I2f5ac1ea70b5d5819ffd1c23667196c582f78488
    Reviewed-on: http://review.couchbase.org/64735
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg Jun 3, 2016
  2. n1x: Allow for both JSON and comma-delimited field values

    Change-Id: Ib563a15bcab34b8a824132cfaecf1e36e4a2d2d4
    Reviewed-on: http://review.couchbase.org/64734
    Tested-by: Mark Nunberg <mark.nunberg@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg May 24, 2016
  3. Add `--populate-only` option

    This allows to use pillowfight purely in a document loading mode, for
    use perhaps by another tool such as n1ql or fts.
    
    Change-Id: Ie3cf3d53d7f3c916dbcc6d8e855b454cfb0e61c2
    Reviewed-on: http://review.couchbase.org/64121
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg May 17, 2016
Commits on Jun 14, 2016
  1. SSL: Allow to bypass openssl initialization

    By default we set up OpenSSL initialization and locking routines. This
    is usually ok, but conflicts with programs which already setup SSL in
    their own right (for example, php). While we can't determine if OpenSSL
    is actually loaded, we _can_ at least offer an escape hatch so that the
    application does not crash.
    
    This functionality can be enabled by using `ssl=no_global_init` in the
    connection string. Note that SSL connection string options are
    _additive_ as well.
    
    Change-Id: Ie50f2c0cf67333e7ac8be6f9dbd5fe54e6480e42
    Reviewed-on: http://review.couchbase.org/64733
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg May 23, 2016
  2. n1ql: Allow to toggle multi-auth

    This adds a flag (actually, it's a flag which is valid for any lcb
    operation) which indicates if multiple credentials should be sent to the
    server. The default is off
    
    Change-Id: I3bbd2600489eeba3fddf1aabded501b805d57bd6
    Reviewed-on: http://review.couchbase.org/64736
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg May 31, 2016
  3. Set LCB_RESP_F_FINAL on all final callbacks

    We would previously just set them on multi-callback commands, but
    knowing that a response is the final one may be useful for generic
    wrappers as well.
    
    Change-Id: Ia4c9753be05bab7486f017e38062f19cbfbb18cc
    Reviewed-on: http://review.couchbase.org/64737
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with mnunberg May 31, 2016
Commits on Jun 9, 2016
  1. CCBC-704: Don't get stuck in loop when single server fails

    This ensures that we don't end up in a situation where the single-server
    socket is never actually cleaned up. This is fixed by properly handling
    entered/exited events and the pending counter
    
    Previously the pending counter was decremented only *after* the Cw_ex
    callback, making the application code (in this case, mcserver) never
    actually perform the cleanup.
    
    Change-Id: I0717c632adea7d1a6aaf1dcc1516104885ca917b
    Reviewed-on: http://review.couchbase.org/64855
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    mnunberg committed with mnunberg Jun 9, 2016
Commits on May 24, 2016
  1. Fix constants in the docs

    Change-Id: Ifbde0de01abdfe4707612f1c63273fab3793c4e8
    Reviewed-on: http://review.couchbase.org/64324
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Mark Nunberg <mark.nunberg@couchbase.com>
    avsej committed with mnunberg May 24, 2016
Commits on May 17, 2016
  1. Update release metadata for 2.6.0

    Change-Id: Ied3594524064a45b27114b70792b8bb69c1ea510
    Reviewed-on: http://review.couchbase.org/64120
    Tested-by: Mark Nunberg <mark.nunberg@couchbase.com>
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Subhashni Balakrishnan <b.subhashni@gmail.com>
    mnunberg committed with mnunberg May 17, 2016
Commits on May 13, 2016
  1. More index management fixes

    - Naming fixes. ixmgmt -> n1x. This is consistent with n1p for query
      parameters
    - Add `cond` field.
    
    Change-Id: Iaf452547ed76f7c3ad2be25f8fab6c16aad577f8
    Reviewed-on: http://review.couchbase.org/63982
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Will Gardner <will.gardner@couchbase.com>
    mnunberg committed with mnunberg May 11, 2016