Permalink
Commits on Dec 11, 2012
  1. Update metadata for release 2.0.1

    avsej committed Dec 10, 2012
    The library version will be 2.0.1 as well as package version
    
    Change-Id: If8ee8edc53699d3c50811bf826ad807f3bce23a4
    Reviewed-on: http://review.couchbase.org/23181
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  2. Put readable RELEASE_NOTES into the repo

    avsej committed Dec 5, 2012
    Change-Id: I7f2c7f8bffb06560e0188024b7de0bd511503003
    Reviewed-on: http://review.couchbase.org/23107
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Commits on Dec 10, 2012
  1. Other way to fix timers in libev

    funny-falcon committed with avsej Dec 10, 2012
    It is hard to tell, which approach is better or more correct.
    
    Change-Id: I7e231b2823aa4fd6b935de9fbeb3f7f51513040a
    Reviewed-on: http://review.couchbase.org/23172
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  2. Reset IO event on delete

    avsej committed with trondn Dec 10, 2012
    We need to reset it, because it might be re-used later
    
    Change-Id: I577ed6328c8ff3f64d0649b2f07a073915452213
    Reviewed-on: http://review.couchbase.org/23171
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  3. Delay all timers while loop isn't active

    avsej committed Dec 10, 2012
    It will fix following scenario:
    
    1. connect the instance
    2. sleep for time greater than default timeout (e.g. 3 seconds)
    3. schedule and execute a command
    
    Without this patch libev backend will immediately return LCB_ETIMEDOUT
    
    Change-Id: I71ad9b39fa7315d62d69c8314b0d15ba63491bf3
    Reviewed-on: http://review.couchbase.org/23170
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  4. Use defined coding style for examples

    trondn committed Dec 10, 2012
    Change-Id: I464261556bc28780580615ce0ae268c4cb7bbf04
    Reviewed-on: http://review.couchbase.org/23161
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
  5. Fixup compiler invocation for minimal.c

    trondn committed Dec 10, 2012
    Change-Id: I66946fdfad2572a4754e509931c758a08b6e53f6
    Reviewed-on: http://review.couchbase.org/23160
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Commits on Dec 5, 2012
  1. Clarify the ttp/ttr fields for observe

    trondn committed Dec 5, 2012
    Change-Id: I6f349b80b991e353b2f4515e4934e45b075f0da6
    Reviewed-on: http://review.couchbase.org/23102
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
  2. CCBC-136: do not abort when purging SASL commands

    avsej committed Dec 5, 2012
    Change-Id: Iaf222a359080855e393a55b1fd4f12293b432d14
    Reviewed-on: http://review.couchbase.org/23100
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Dec 4, 2012
  1. Do not call finish twice on connect error

    avsej committed with trondn Dec 4, 2012
    Change-Id: Ib0a7e80d5dac2b96bcfcbccb0735618c82debd6b
    Reviewed-on: http://review.couchbase.org/23037
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  2. Cleanup HTTP traces: probe http_end only once

    avsej committed with trondn Dec 3, 2012
    also fixes warinings like this:
    
    src/http.c: In function 'request_do_fill_input_buffer':
    src/http.c:217: error: missing initializer [-Wmissing-field-initializers]
    src/http.c:217: error: (near initialization for 'resp.v') [-Wmissing-field-initializers]
    src/http.c:217: error: unused variable 'resp' [-Wunused-variable]
    
    Change-Id: I1ca075d87059fdeacb6e857478a05079f7b344c8
    Reviewed-on: http://review.couchbase.org/23018
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Commits on Dec 3, 2012
  1. Do not use req->server in macros

    avsej committed with trondn Dec 3, 2012
    This member is only available when LCB_HTTP_TYPE_VIEW is used and also
    `url' member should always contain host.
    
    Change-Id: I9cf2da84c6cbc0209ea5c4856d74ebbadf96ab51
    Reviewed-on: http://review.couchbase.org/23015
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  2. Make lcb_logger work again

    mnunberg committed with avsej Dec 3, 2012
    We were still defining LIBCOUCHBASE_DEBUG_NOCTX, when it should now be
    LCB_DEBUG_NOCTX
    
    Change-Id: I3eea2659bb6f0cd9e7695eae263653d32857b87c
    Reviewed-on: http://review.couchbase.org/22999
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
  3. Make it C89 friendly again

    avsej committed Dec 3, 2012
    Change-Id: I65dbf1f4d19d6f5aa6bd388f8e9754ec0679942f
    Reviewed-on: http://review.couchbase.org/23013
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  4. CCBC-132, CCBC-133: Let HTTP function in stormy weather

    mnunberg committed with avsej Dec 3, 2012
    This changeset encompasses several files (and possibly several unfiled)
    issues which occur with HTTP requests during network errors and
    configuration changes.
    
    Specifically some duplicate code paths were removed, and the process for
    delivering an HTTP response back to the user is more streamlined.
    
    Change-Id: Idb6f6c5b89de8107ebdd9fd86a56716353de8475
    Reviewed-on: http://review.couchbase.org/23001
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
  5. Add manpages for all of cbc-* commands

    trondn committed Dec 1, 2012
    Change-Id: I0837255e3760f334058231444887a39d46bdecdc
    Reviewed-on: http://review.couchbase.org/22967
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Commits on Nov 30, 2012
  1. src/probes.h is generated file, so it should be in dist

    avsej committed with trondn Nov 30, 2012
    Change-Id: I5dab5ec3715350ef84da03349cf2a043f05eaa28
    Reviewed-on: http://review.couchbase.org/22949
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  2. CCBC-130: Fix memory leak on http headers

    mnunberg committed with avsej Nov 30, 2012
    Change-Id: I40cf0fc340974ee9f90b4436219b7055e5fc9104
    Reviewed-on: http://review.couchbase.org/22922
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. Skip mock tests on real cluster

    mnunberg committed with avsej Nov 30, 2012
    Some tests require special mock commands and should not be run against a
    real cluster
    
    Change-Id: I3bb09f920a24b2e69e5a80f0145be23de9997d87
    Reviewed-on: http://review.couchbase.org/22921
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
  4. Don't check for EINVAL when missing POST/PUT body

    mnunberg committed with avsej Nov 30, 2012
    This behavior was changed previously
    
    Change-Id: I620a37d536b1e6d3963f41c0ca25e38b23fd162b
    Reviewed-on: http://review.couchbase.org/22920
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
  5. CCBC-131: Compensate for cluster nodes lacking couchApiBase

    mnunberg committed with avsej Nov 30, 2012
    Change-Id: I2d95738ea0377d70af6b2a6f332fb6b55b303453
    Reviewed-on: http://review.couchbase.org/22918
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Commits on Nov 28, 2012
  1. Fix possible SEGFAULT

    avsej committed with trondn Nov 28, 2012
    Change-Id: Ib4af592550fcc98ad761b732dada12508a6b9815
    Reviewed-on: http://review.couchbase.org/22890
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  2. Add probes into the distribution tarball

    avsej committed Nov 28, 2012
    Change-Id: Ib0bae24f906872aae4d5447b31931c542975b0f7
    Reviewed-on: http://review.couchbase.org/22885
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. SystemTap and DTrace integration

    avsej committed Nov 26, 2012
    Change-Id: I307dac7b2985d2dce83c8c90b4928623c71f9c2a
    Reviewed-on: http://review.couchbase.org/22828
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Nov 27, 2012
  1. Update metadata for release 2.0.0

    avsej committed Nov 27, 2012
    Change-Id: I33da8f53074f3d2938b7b8a6c71416601b6fd0ab
    Reviewed-on: http://review.couchbase.org/22840
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  2. Install unlock callback in synchronous mode

    avsej committed with trondn Nov 27, 2012
    Change-Id: I344b859e3513ef4aee27e7afeb4b8391ec7857f2
    Reviewed-on: http://review.couchbase.org/22849
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Commits on Nov 26, 2012
  1. Add libcouchbase-{bin,core} to libcouchbase-dbg

    avsej committed with trondn Nov 26, 2012
    Change-Id: Ib931050643fa3ce5d8e9949cf65a9fca6e719b0e
    Reviewed-on: http://review.couchbase.org/22816
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  2. Add the CAS to the delete callback

    trondn committed Nov 26, 2012
    Change-Id: Ic8a535d748a5c63498e092d442cce344f57684c5
    Reviewed-on: http://review.couchbase.org/22813
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Trond Norbye <trond.norbye@gmail.com>
Commits on Nov 21, 2012
  1. libcouchbase-all package comes without version

    avsej committed Nov 21, 2012
    Change-Id: If3060696c6ddc048e6e5101401728b050436c8f4
    Reviewed-on: http://review.couchbase.org/22715
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  2. Update metadata for release 2.0.0beta3

    avsej committed with trondn Nov 21, 2012
    Change-Id: I3bf508265a18c266e5c51cb309b72a328cf4a5f7
    Reviewed-on: http://review.couchbase.org/22709
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Commits on Nov 20, 2012
  1. CCBC-104 Fix illegal memory access

    avsej committed with trondn Nov 20, 2012
    ==19659==  General Protection Fault
    ==19659==    at 0x4E93216: ringbuffer_write (ringbuffer.c:127)
    ==19659==    by 0x4E90ACA: relocate_packets (instance.c:523)
    ==19659==    by 0x4E90E5E: lcb_update_serverlist (instance.c:583)
    ==19659==    by 0x4E91B83: vbucket_stream_handler (instance.c:964)
    ==19659==    by 0x60B7599: event_base_loop (in /usr/lib64/libevent-1.4.so.2.1.3)
    ==19659==    by 0x5EB0320: lcb_io_run_event_loop (plugin-libevent.c:320)
    ==19659==    by 0x4E982B4: lcb_wait (wait.c:112)
    
    Change-Id: I6d8657433665b74ec5700f7665103f346bcfd46b
    Reviewed-on: http://review.couchbase.org/22691
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  2. CCBC-104 Reconnect config listener

    avsej committed with trondn Nov 20, 2012
    Change-Id: If28b6939c025d1d3ceb205930106ef3827515bec
    Reviewed-on: http://review.couchbase.org/22686
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  3. libvbucket: read and store thisNode property of node

    avsej committed with trondn Nov 20, 2012
    Change-Id: I121c03e61bc7bcaef1a9c49b012b938bef8ab32d
    Reviewed-on: http://review.couchbase.org/22685
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  4. Use public configuration callback instead of vbucket_listener

    avsej committed with trondn Nov 20, 2012
    Change-Id: I9254688e5a819b87d1157c8555bcd1336e673283
    Reviewed-on: http://review.couchbase.org/22681
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  5. Check for EWOULDBLOCK/EINTR on failed send

    mnunberg committed with avsej Nov 20, 2012
    Change-Id: I6e3cb166db29bfebf40025137b3bd202e4370e7a
    Reviewed-on: http://review.couchbase.org/22683
    Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>