Permalink
Commits on Mar 6, 2012
  1. @avsej @trondn

    Updated package metadata for 1.0.2 release

    Change-Id: Id3333121aff904c41af5908637bb3bc1dfa35b96
    Reviewed-on: http://review.couchbase.org/13785
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Mar 6, 2012
  2. @avsej @trondn

    make reformat

    Change-Id: I0c5b6e23c32fb641c98636377d1fe5032a6620a8
    Reviewed-on: http://review.couchbase.org/13781
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Mar 5, 2012
Commits on Mar 2, 2012
  1. @trondn

    Update library version

    The shared object should be 1.2.0 and the library version number
    should be set to 1.0.2
    
    Change-Id: If3bb7ca0dcf0c6c63a644a7aab824c2b6e66a9b8
    Reviewed-on: http://review.couchbase.org/13747
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Mar 2, 2012
  2. @trondn

    Fix buildbreak on win32

    Change-Id: Ie48ed69ba95a2eb54e2a1fad346423e22eeb7504
    Reviewed-on: http://review.couchbase.org/13749
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Mar 2, 2012
  3. @mnunberg @avsej

    implement PROTOCOL_BINARY_CMD_VERSION

    Change-Id: I4d08b1ea503381913ce5a0d1edc06bdd19e18a57
    Reviewed-on: http://review.couchbase.org/13377
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with avsej Feb 20, 2012
  4. @trondn

    Allow use of libcouchbase to pure memcached clusters

    Change-Id: If9152d0783dc86fd879db4549c321ef281714401
    Reviewed-on: http://review.couchbase.org/13746
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Jan Lehnardt <jan@couchbase.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Mar 2, 2012
  5. @trondn

    Fix compile error in smoke-test (-Wformat-security)

    Change-Id: I5f08c8d582afc6ccd0d1c9026b70d07df249d698
    Reviewed-on: http://review.couchbase.org/13745
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Mar 2, 2012
Commits on Mar 1, 2012
  1. @trondn

    Add astyle rules

    Change-Id: Id596dd3b65f73ba5ad6144ee3b40e2d58d934219
    Reviewed-on: http://review.couchbase.org/13706
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    trondn committed Mar 1, 2012
Commits on Feb 29, 2012
  1. @avsej @trondn

    debhelper required to build deb packages

    Change-Id: Ie6b94d65c1a0795ed4607da95c339e7b4824b76a
    Reviewed-on: http://review.couchbase.org/13683
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Feb 29, 2012
  2. @avsej @trondn

    Reduce package dependencies (use internal SASL client)

    Change-Id: Ib37ac3c67417613307b634a09bf653d802af6689
    Reviewed-on: http://review.couchbase.org/13682
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Feb 29, 2012
  3. @avsej @trondn

    Always sign deb packages and allow to pass PGP key

    Change-Id: I3ecc2a629859f3b24ae32ea5456cc22840b663b1
    Reviewed-on: http://review.couchbase.org/13681
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Feb 29, 2012
  4. @avsej @trondn

    Rename packaging/{debian,deb}

    Change-Id: Id49f541ec9f6a37a5cd6b00905d38fd0ebe2938c
    Reviewed-on: http://review.couchbase.org/13680
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Feb 29, 2012
Commits on Feb 28, 2012
  1. @trondn

    Bundle the protocol definitions for memcached to make it easier to build

    The protocol headers is used to get the struct definitions and the
    command id's to make it easier to build on most platforms. Those files
    doesn't change that often, and it doesn't really make sense to require
    the user to build and install the memcached server just to get the
    headerfiles to build the client ;-)
    
    I've added the COPYRIGHT file from the memcached project in the same
    directory as the headers.
    
    Change-Id: I73a469704accd333cef7ead7a4a40701a704bd1c
    Reviewed-on: http://review.couchbase.org/13633
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Feb 27, 2012
Commits on Feb 26, 2012
  1. @mnunberg @avsej

    Refactor connection error handling

    socket connection error handling refactored, common code from instance
    and server connect functions abstracted. More predictable and sensible
    error reporting.
    
    Errors are classified into more 'high-level' [laugh] concepts related to
    users of libcouchbase and the course of action to be taken.
    
    Change-Id: If9c2ced19780531ea92dfb9ba4a818bded7332a9
    Reviewed-on: http://review.couchbase.org/13614
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    mnunberg committed with avsej Feb 25, 2012
Commits on Feb 23, 2012
  1. @avsej @trondn

    Add JSON support for cp function

    Change-Id: Id7fe53405fcaeb1f7fca11f395b1cefd6454fd90
    Reviewed-on: http://review.couchbase.org/13300
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Feb 16, 2012
Commits on Feb 22, 2012
  1. @mnunberg @trondn

    Handle EINVAL for connects

    EINVAL can be received for a getaddrinfo response for an IPv6 host
    lookup, but where the actual node/rest server is not listening on ipv6
    (this fails on netbsd with the mockserver, without these fixes)
    
    Change-Id: I34d3b6d4f0b72a56e5b75f69a3a01a08959dd547
    Reviewed-on: http://review.couchbase.org/13477
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    mnunberg committed with trondn Feb 22, 2012
  2. @trondn

    Bundle sasl client implementation

    The user may still use another sasl implementation by using
    --enable-system-libsasl
    
    Change-Id: Ic96836d3fc8f558ac594965aa9a07352cd0b00db
    Reviewed-on: http://review.couchbase.org/13491
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    trondn committed Feb 22, 2012
  3. @mnunberg @avsej

    include <cstdlib> in cbc.cc (provides EXIT_*)

    Change-Id: I902c5c8f959bd350bfc5432e618c224d23b8450b
    Reviewed-on: http://review.couchbase.org/13468
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with avsej Feb 22, 2012
  4. @mnunberg @avsej

    Fixed some compiler warnings and tidy types

    s/^uint_/libcouchbase_uint_/;
    
    change %s to %d (this was an actual bug)
    
    use inttypes.h for n-wide protocol field printing (e.g. cas, opaque,
    bodylen)
    
    Fixed other annoying compiler warnings about type safety
    
    Change-Id: If547f4c7f6b29880b864b78644471a48db99d730
    Reviewed-on: http://review.couchbase.org/13479
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mnunberg committed with avsej Feb 22, 2012
Commits on Feb 21, 2012
  1. @mnunberg @trondn

    Added internal debugging/logging routines

    Change-Id: I6757faa1da14890f852a3e46ac7731e493b20cac
    Reviewed-on: http://review.couchbase.org/13410
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    mnunberg committed with trondn Feb 20, 2012
  2. @pierrejoye @trondn

    Fix windows build (MSVC9): define E* if missing

    Change-Id: I5ed44fe668e69b23fa57bc399b12ece8f71c98d3
    Reviewed-on: http://review.couchbase.org/13387
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    pierrejoye committed with trondn Feb 7, 2012
  3. @pierrejoye @trondn

    Fix windows build (MSVC9): stdint header

    Change-Id: Ie7b9a0990ec270cefb28d1e221436b303c2ab0b3
    Reviewed-on: http://review.couchbase.org/13386
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    pierrejoye committed with trondn Feb 7, 2012
Commits on Feb 20, 2012
  1. @avsej @trondn

    Rename argument to make it more consistent

    The library usually uses "instance" variable to store a pointer to the
    connection object. It is also has cookie field. So it could be a bit
    confusing to read the source of this function.
    
    Change-Id: Ifc5d5d72f75fb57de6c0fc0b53e10da974f3b981
    Reviewed-on: http://review.couchbase.org/13379
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Feb 20, 2012
Commits on Feb 17, 2012
  1. @trondn

    Add support for multiple hosts for the bootstrap URL

    Change-Id: I54ff6e96707034499d7f21d6d8928919bad47090
    Reviewed-on: http://review.couchbase.org/13229
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    trondn committed Feb 14, 2012
  2. @avsej

    Raise error if <stdint.h> missing

    Change-Id: I6021093c0d93fe6180c9e9e1a1e84915d9d1193b
    Reviewed-on: http://review.couchbase.org/13330
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Jan Lehnardt <jan@couchbase.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed Feb 17, 2012
  3. @trondn

    Don't use std:: (we're using namespace std anyway)

    Change-Id: I8c2bdce091915529e6b0149483a7dbf997d13a08
    Reviewed-on: http://review.couchbase.org/13328
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Feb 17, 2012
  4. @trondn

    Added "verify"

    Change-Id: Iafc578dc0b6871aa863bc84751c40bd7211c5383
    Reviewed-on: http://review.couchbase.org/13297
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    trondn committed Feb 16, 2012
  5. @avsej @trondn

    Include <stdint.h> for tools

    Fixes following errors:
    
      In file included from tools/configuration.cc:23:0:
      tools/configuration.h:38:21: error: ‘uint32_t’ has not been declared
      tools/configuration.h:39:5: error: ‘uint32_t’ does not name a type
      tools/configuration.h:49:5: error: ‘uint32_t’ does not name a type
      tools/configuration.cc: In constructor ‘Configuration::Configuration()’:
      tools/configuration.cc:27:50: error: class ‘Configuration’ does not have any field named ‘timeout’
      tools/configuration.cc: In member function ‘void Configuration::setTimeout(const char*)’:
      tools/configuration.cc:99:17: error: ‘uint32_t’ was not declared in this scope
      tools/configuration.cc: At global scope:
      tools/configuration.cc:98:6: error: unused parameter ‘t’ [-Werror=unused-parameter]
      tools/configuration.cc:102:32: error: variable or field ‘setTimeout’ declared void
      tools/configuration.cc:102:32: error: ‘uint32_t’ was not declared in this scope
      tools/configuration.cc:106:1: error: ‘uint32_t’ does not name a type
    
    Change-Id: I4d695b212fb2e2e3321b5407e3af8edcc1167a69
    Reviewed-on: http://review.couchbase.org/13329
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Feb 17, 2012
  6. @trondn

    Add option to set timeout for cbc

    Change-Id: Ie7c17942a2e53790d6acb7427f7497842561b521
    Reviewed-on: http://review.couchbase.org/13327
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    trondn committed Feb 17, 2012
  7. @avsej

    Fix command help

    Change-Id: I262794cbc8ec86d1681c89b6a8a0f0c6e23eecf2
    Reviewed-on: http://review.couchbase.org/13301
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 16, 2012
Commits on Feb 16, 2012
  1. @avsej @trondn

    Do not expose PACKAGE_STRING

    Change-Id: I07f235af23688e8cabdee5bfc41c78912f77b04e
    Reviewed-on: http://review.couchbase.org/13313
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    avsej committed with trondn Feb 16, 2012
  2. @avsej

    Add cheatsheet for cbc command

    Change-Id: I41e904b7bec9e96d5ffc28da92ca0c3405bb4247
    Reviewed-on: http://review.couchbase.org/13299
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 16, 2012
  3. @avsej

    cbc.cc: check for NULL result of libcouchbase_create()

    Change-Id: Ibd3bf8741f117e574b536a8e264c5fa7555993cd
    Reviewed-on: http://review.couchbase.org/13294
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 16, 2012
  4. @trondn

    Added support for '-' to cp

    That will read the list of files to copy from stdin
    
    Change-Id: Ifd6f699a288ef2356d23426d1e769df6bf36305c
    Reviewed-on: http://review.couchbase.org/13295
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    trondn committed Feb 16, 2012
Commits on Feb 15, 2012
  1. @avsej @trondn

    Fix mingw cross build

    * don't require libevent when winsock2 available
    * use sasl_client_init() for sasl presence check
    * remove pthread flags
    * add plugin-win32.c to SOURCES and -Iwin32 to CPPFLAGS
    * remove configuration header (NMakefile users could use configuration.h
      from the tarball)
    
    Change-Id: I38e44c7475a39117aadfa98edbabd78075ab70d8
    Reviewed-on: http://review.couchbase.org/13262
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed with trondn Feb 15, 2012