Permalink
Commits on Feb 14, 2012
  1. Updated version and package metadata for 1.0.1.

    ingenthr committed Feb 14, 2012
    The actual 1.0.1 in the package file happens based on the git tag
    but we set it in package metadata manually and control the version
    in configure.ac.
    
    Note this release introduces divergence in the so-name and the
    package version.  We've decided this is the appropriate thing to do
    for this project.  As you may know, various approaches are taken by
    various projects-- our rules are very strict on so-name and more
    loose on product release version.
    
    In the future, the first commit after a release should increment
    this, but we didn't do that this time.
    
    Change-Id: I5944ca486ac80a3dd92e68823c01fe19f697b471
    Reviewed-on: http://review.couchbase.org/13214
    Reviewed-by: Jan Lehnardt <jan@couchbase.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  2. Update to new MT-safe libvbucket API

    avsej committed Feb 13, 2012
    Change-Id: Iee939237914d7a06f3ceeb1260ddcc9e08cf149d
    Reviewed-on: http://review.couchbase.org/13195
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. Fix visibility attribute for compiling

    trondn committed Feb 14, 2012
    Change-Id: Ic8ecdacf327df8c0f8325b9798545986689367bf
    Reviewed-on: http://review.couchbase.org/13215
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Feb 13, 2012
  1. Add --with-couchbasemock

    trondn committed Feb 13, 2012
    Change-Id: I69f7ffb106ddc95cfebda1cbcc0397b807387535
    Reviewed-on: http://review.couchbase.org/13196
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  2. changed server tests to wait a bit on EINTR

    mnunberg authored and trondn committed Feb 13, 2012
    (it happened quite a lot under OS X with gdb)
    
    Change-Id: If34c0a4d96bad7e733cede7c63591ad34e30c202
    Reviewed-on: http://review.couchbase.org/13182
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. purge_implicit_responses handling of NOOP

    mnunberg authored and trondn committed Feb 13, 2012
    purge_implicit_responses will sometimes die otherwise
    
    Change-Id: I68520393e66a8d652067397af56ac121014b0c11
    Reviewed-on: http://review.couchbase.org/13180
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
  4. better instance socket cleanup handling

    mnunberg authored and trondn committed Feb 13, 2012
    1) close sockets after error
    2) call delete_event on the socket event, but only if we determine that
    the event was first created (otherwise, it will segfault on different
    versions of libevent)
    
    Change-Id: I9df40cd1313df4ba1b7a232d27c5bd1a40f7d88f
    Reviewed-on: http://review.couchbase.org/13191
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  5. Ignore coredumps

    avsej committed Feb 10, 2012
    Change-Id: Id12185830a2b6dba9d861d304130b01caf47554c
    Reviewed-on: http://review.couchbase.org/13172
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Feb 12, 2012
  1. Add option for embedding libevent io options

    mnunberg authored and trondn committed Feb 12, 2012
    This allows libcouchbase to be entirely static
    
    Change-Id: Ibb8ef141e78beb0c2b40cfccae28994a27fb4f58
    Reviewed-on: http://review.couchbase.org/13178
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
Commits on Feb 10, 2012
  1. Fix default port for backup nodes

    trondn committed Feb 10, 2012
    Change-Id: Ic945f8da7d38a19439c85bcabf72465061f00811
    Reviewed-on: http://review.couchbase.org/13174
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
  2. Simplify server checks in libcouchbase_mtouch_by_key

    avsej committed Feb 10, 2012
    Change-Id: I267bbb11ce08782ef5890ec38c2a5fa097213729
    Reviewed-on: http://review.couchbase.org/13171
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  3. Call libcouchbase_server_send_packets() when it needed

    avsej authored and trondn committed Feb 10, 2012
    Change-Id: I67536561c8d5ceeb4583a41bf2a9998556a29898
    Reviewed-on: http://review.couchbase.org/13168
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  4. Ignore NOOP command on server purge

    avsej committed Feb 10, 2012
    Change-Id: I7940ea7195c3f23b34072df9bbe17858a8d1e691
    Reviewed-on: http://review.couchbase.org/13167
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  5. Fix multi-{get,touch} requests handling when nkeys > 1

    avsej committed Feb 10, 2012
    Change-Id: I6e876522032fd996baba1df94e52fb1aed150a59
    Reviewed-on: http://review.couchbase.org/13161
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  6. Run test cases for make check

    trondn committed Feb 10, 2012
    Change-Id: I7e073a332db15a43a54118a65582258ba490cf1e
    Reviewed-on: http://review.couchbase.org/13165
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  7. Fix NMakefile

    trondn committed Feb 10, 2012
    Change-Id: I68f85fb6263ca38212360731a6d60b316476ee34
    Reviewed-on: http://review.couchbase.org/13164
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  8. Fix pillowfight source

    trondn committed Feb 10, 2012
    Change-Id: I1054c2baad378b5c405e0f888c7315aa4e652ea5
    Reviewed-on: http://review.couchbase.org/13163
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  9. Reset stream state on new instance socket.

    mnunberg authored and trondn committed Feb 9, 2012
    Change-Id: I68677e01f3bb985ce1a0c18e1311b8175683dc8b
    Reviewed-on: http://review.couchbase.org/13117
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Feb 9, 2012
  1. Segfault when delete_event called on invalid socket

    mnunberg authored and avsej committed Feb 9, 2012
    Perhaps we should initialize the event to NULL? why isn't it NULL
    already.
    
    Change-Id: Ice1d16547021607d329571aa8ba3dbe3d4aed104
    Reviewed-on: http://review.couchbase.org/13122
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  2. Allow to build without tools which require C++ compiler

    avsej authored and trondn committed Feb 9, 2012
    With this patch extensions (such as php or ruby clients) don't need to have
    C++ compiler to build library.
    
    Change-Id: I10da4ac7ebd91feb4c7c085ca873c0789ebb177b
    Reviewed-on: http://review.couchbase.org/13123
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  3. Destroy event base if we created it

    trondn committed Feb 9, 2012
    Change-Id: If4b7a54564776c46238c6fbc8047433bd2a6cebc
    Reviewed-on: http://review.couchbase.org/13126
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  4. Release allocated resources

    trondn committed Feb 9, 2012
    Change-Id: I66e84c37289e897b17cd51cfda3f8911d754b4cb
    Reviewed-on: http://review.couchbase.org/13124
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Feb 8, 2012
  1. Fix connect timeouts

    mnunberg authored and trondn committed Feb 8, 2012
    Timeouts are per-operation and onyl set if there is any I/O. The
    special exception to this is initial connections, which do not
    necessarily have a data stream or write buffer associated wiht them
    yet.
    
    Change-Id: I47d64346fc33ac137a6a338600638f3ab684e5fe
    Reviewed-on: http://review.couchbase.org/13080
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
  2. Check server index before using (CCBC-51)

    avsej committed Feb 8, 2012
    The config renders negative values for unavailable nodes
    
    http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-client-development-restjson-parsing.html
    
    Change-Id: I00d859a29992fe65e935fe650081d81b74873cf8
    Reviewed-on: http://review.couchbase.org/13091
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Commits on Feb 7, 2012
  1. Don't do output in library code

    avsej authored and trondn committed Feb 7, 2012
    Change-Id: Iaed6490dc4a15c4802c965979d944796203ac76a
    Reviewed-on: http://review.couchbase.org/13056
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Jan Lehnardt <jan@couchbase.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  2. Handle PROTOCOL_BINARY_RESPONSE_NOT_MY_VBUCKET

    avsej committed Feb 5, 2012
    Change-Id: I3fde309ef38b236cfcab7c529da8884ab0f34f9b
    Reviewed-on: http://review.couchbase.org/13026
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. cmd_log buffer stores protocol_binary_request_header structs

    avsej authored and trondn committed Feb 5, 2012
    Change-Id: Icb64063ce5d39c063237e365436be6d3ee59a0d2
    Reviewed-on: http://review.couchbase.org/13025
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  4. Use alternate nodes when current is dead (CCBC-38)

    avsej authored and trondn committed Jan 30, 2012
    Change-Id: I7f7e77fd1a1b874fc682d286a2165681b5d4b976
    Reviewed-on: http://review.couchbase.org/12354
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  5. Fix relocation of the buffers after config update

    avsej authored and trondn committed Jan 30, 2012
    Copy command on lower level to leave command data. Also take into account
    that new server isn't connected so all commands are moving to pending
    buffer. And then it tries to connect the server.
    
    Change-Id: I339f718f3a68866906be77152a554bc759b711ab
    Reviewed-on: http://review.couchbase.org/12788
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Commits on Feb 5, 2012
  1. Relocate buffers only for vbucket distribution

    avsej committed Jan 26, 2012
    Change-Id: I9d07a32502cb91c4d9b29c65f4c7068b770f9cc8
    Reviewed-on: http://review.couchbase.org/12699
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Feb 2, 2012
  1. Do not attempt SASL when SASL already in progress

    mnunberg authored and avsej committed Feb 2, 2012
    Fixed spurious invocation of error callbacks
    modified smoke-test.c to demonstrate
    
    Change-Id: Ice07a80b4524b908685ea795e113bb13d81f7cdc
    Reviewed-on: http://review.couchbase.org/12857
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  2. Add test for SASL

    avsej committed Feb 2, 2012
    Change-Id: I92dd8b2de34d0efe236db63cac86116a1f592d3b
    Reviewed-on: http://review.couchbase.org/12900
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  3. Finer grained error reporting for basic REST errors

    mnunberg authored and avsej committed Feb 1, 2012
    Return LIBCOUCHBASE_AUTH_ERROR on HTTP 401
    return LIBCOUCHBASE_BUCKET_ENOENT on HTTP 404
    Event loop is stopped (via maybe_breakout) on REST error
    
    Change-Id: I338262bce379b33bfefea79d8ddf5818ed0c400a
    Reviewed-on: http://review.couchbase.org/12859
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Feb 1, 2012
  1. Fixed segfaults and memory access errors on libevent1.4

    mnunberg authored and avsej committed Feb 1, 2012
    Change-Id: Ib450a1dd2dc79135214e46b126a1489701d86709
    Reviewed-on: http://review.couchbase.org/12874
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  2. Fix smoke test

    avsej authored and trondn committed Feb 1, 2012
    Now it should really truncate args
    
    Change-Id: Ic8303d70ee485acaab20f49a239beff5bf53a440
    Reviewed-on: http://review.couchbase.org/12863
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>