Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 28, 2012
  1. @avsej

    Update metainfo for 1.2.1

    avsej authored
    Change-Id: I1455a30909940dde524ed5ba1dc2a7be0b5d05ba
    Reviewed-on: http://review.couchbase.org/23574
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  2. @ingenthr @avsej

    Various RELEASE_NOTES minor fixes.

    ingenthr authored avsej committed
    Change-Id: I5b33fa6d67abe5e0478493ec77f2a75325ef7525
    Reviewed-on: http://review.couchbase.org/23589
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. @funny-falcon @avsej

    [backport] mth plugin: make it immune from being forgotten

    funny-falcon authored avsej committed
    allocate temporary structures as ruby objects, so that it will
    be collected even if it's forgotten inside of fiber.
    
    Change-Id: Ifc0dd739d3e464185e4cb709303f965912e38eb0
    Reviewed-on: http://review.couchbase.org/23573
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  4. @avsej

    [backport] RCBC-102 Fix inconsistent return of store functions

    avsej authored
    The Bucket#set for example should return the object corresponding to
    arguments passed:
    
      1.9.3p327 (main):002:0> conn.set("foo", "bar")
      851339802448297984
      1.9.3p327 (main):003:0> conn.set("foo" => "bar", "baz" => "foo")
      {"foo"=>2995536636664938496, "baz"=>16831440216388861952}
    
    But when :observe option is used, it always return it like for
    multi-set:
    
      1.9.3p327 (main):004:0> conn.set("foo", "bar", :observe => {:persisted => 1})
      {"foo"=>2559248876759744512}
    
    Conflicts:
    	ext/couchbase_ext/store.c
    
    Change-Id: I86a1e3f04802e12830831d82045e06ee54092490
    Reviewed-on: http://review.couchbase.org/23572
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  5. @avsej

    [backport] RCBC-101 Fix observe options passing to store methods

    avsej authored
    Conflicts:
    	ext/couchbase_ext/store.c
    
    Change-Id: Ia4ae6413e0776f88f6922dbe655f2838b4f1c6ad
    Reviewed-on: http://review.couchbase.org/23571
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Dec 12, 2012
  1. @avsej

    Bump version 1.2.0

    avsej authored
    Change-Id: If0c7b9207652276ef59659a03059ce6b9088909f
    Reviewed-on: http://review.couchbase.org/23225
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  2. @avsej

    Better changelog

    avsej authored
    Change-Id: I1d1ee107e68b0666443db6c1fb9914d8b12351f1
    Reviewed-on: http://review.couchbase.org/23208
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Commits on Dec 11, 2012
  1. @avsej

    multithread_plugin.c: add missing definitions for systems without poll.h

    avsej authored
    Change-Id: I43cbf61ac8fb6abd5051bece190eb2a330e59f3c
    Reviewed-on: http://review.couchbase.org/23214
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  2. @avsej

    Reset exception member before running request

    avsej authored
    Change-Id: Ia7255788ab5d4c3d0021d0930d1c24d99b0261d0
    Reviewed-on: http://review.couchbase.org/23213
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. @funny-falcon @avsej

    specialized io plugin for releasing Ruby GVL

    funny-falcon authored avsej committed
    Ruby 1.9.x uses global lock for ensuring integrity, and blocking calls
    should be called inside rb_thread_blocking_region to allow other threads
    to be runned.
    
    Ruby 1.8.7 have only green threads, so that rb_thread_schedule should
    be called manually.
    
    this io plugin respects ruby's nature.
    
    Change-Id: I024680271691d7d29cce707a7ce140ca0a3e5873
    Reviewed-on: http://review.couchbase.org/23206
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  4. @avsej

    Protect callbacks from any subclasses of Exception

    avsej authored
    Assertion class inherits from Exception instead of StandardError
    
    Change-Id: Iae1ade9223056bc62d3af47a4f4354a7a45e1970
    Reviewed-on: http://review.couchbase.org/23211
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  5. @avsej

    Remove HTTP callback from protected space after usage

    avsej authored
    Change-Id: Ib170bf29e3e0003dbd61b624dd2930ca99f529d4
    Reviewed-on: http://review.couchbase.org/23209
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  6. @avsej

    Enforce GC protection on HTTP callbacks

    avsej authored
    Change-Id: Ie149aac7a1ee6768305ab5786e1d26965cfcce04
    Reviewed-on: http://review.couchbase.org/23203
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  7. @avsej

    RCBC-42 Catch exceptions from ruby callbacks

    avsej authored
    Problem:
    Exceptions in the ruby callbacks (non-local jumps) break libcouchbase
    internals because it assumes that callback won't do such things.
    
    Solution:
    Catch all exceptions in the callbacks and forward then to
    Bucket#on_error callback, which in turn may not raise exceptions. If
    the library detects that #on_error raises exception it will output a
    warning using rb_warning() and nothing more. All exceptions occured
    before running callback from ruby-land will be attached to to result
    object as usual.
    
    Change-Id: Ibce6458255906cf0e784b1fff6498aad1e54f5c4
    Reviewed-on: http://review.couchbase.org/23200
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  8. @avsej

    Flush buckets only if COUCHBASE_FLUSH_BUCKETS set

    avsej authored
    Unique identifiers are more performat way to avoid side effects
    
    Change-Id: I1540dd2ad726cf3718e7b55ec8572af00a3ca809
    Reviewed-on: http://review.couchbase.org/23199
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  9. @avsej

    Remove debug flags

    avsej authored
    Different versions of interpreter use different gems for debugging.
    This patch will remove any specific choices.
    
    Change-Id: I07e3acaead4b48b695ce302f2bc7981b274a82ea
    Reviewed-on: http://review.couchbase.org/23197
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  10. @avsej

    Generate unique keys for tests each run

    avsej authored
    Change-Id: I49a948add6fb83e62a606c16cb182746aa71f3e2
    Reviewed-on: http://review.couchbase.org/23198
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Commits on Dec 6, 2012
  1. @avsej

    RCBC-99 read out the StringIO contents in json gem monkey patch

    avsej authored
    Change-Id: Ic1a96172fad63533dc02dfb98c4c8ec9cc69f14d
    Reviewed-on: http://review.couchbase.org/23117
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Commits on Dec 5, 2012
  1. @avsej

    Use marshal serializer by default for session store

    avsej authored
    This change allows to store complex objects like FlashHash from Rails
    
    Change-Id: I40ede6ded4dbf3f286c6b48d4b5ce2554173c9ea
    Reviewed-on: http://review.couchbase.org/23064
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  2. @funny-falcon @avsej

    use builtin rb_hash_lookup2 when available

    funny-falcon authored avsej committed
    Change-Id: I98ad466d9d848957c1d5f2817f678ea463b033d0
    Reviewed-on: http://review.couchbase.org/23048
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. @funny-falcon @avsej

    DRY parameters allocation in arguments.c

    funny-falcon authored avsej committed
    Change-Id: I6897bcf75b1d9571b5939e0e5fe9696401ad458f
    Reviewed-on: http://review.couchbase.org/23047
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  4. @funny-falcon @avsej

    fix assignment for cmd.get.items_gr

    funny-falcon authored avsej committed
    Change-Id: Ida4fa762ea6ca99aa4b87717e598e5cb1e11f228
    Reviewed-on: http://review.couchbase.org/23046
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  5. @funny-falcon @avsej

    use rb_str_append when possible

    funny-falcon authored avsej committed
    Change-Id: I64ca4986f38e92ae60f7aa6efafb9fc0f9202004
    Reviewed-on: http://review.couchbase.org/23044
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  6. @funny-falcon @avsej

    RCBC-98 Internalize empty string and "default"

    funny-falcon authored avsej committed
    Change-Id: Ia9887bc6e6b4607d8f9c002d8ebb19df6a9986b8
    Reviewed-on: http://review.couchbase.org/23043
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  7. @funny-falcon @avsej

    RCBC-97 Remove unused bucket->key_prefix, use always bucket->key_pref…

    funny-falcon authored avsej committed
    …ix_val
    
    Also make bucket->key_prefix frozen and clean it by setting to nil.
    
    Change-Id: Icdf4b470d2a083551412f3982c03cb5f970e5848
    Reviewed-on: http://review.couchbase.org/23042
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  8. @funny-falcon @avsej

    RCBC-97 Store bucket->node_list as Ruby String

    funny-falcon authored avsej committed
    Change-Id: I10a2e2c828b8547f8e10d1c5608f503a07ba68d6
    Reviewed-on: http://review.couchbase.org/23045
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  9. @funny-falcon @avsej

    RCBC-97 Store bucket->{username,password} as Ruby String

    funny-falcon authored avsej committed
    Change-Id: Ia7a2d50946746e12f4288dcd78d1d2f49eb46c94
    Reviewed-on: http://review.couchbase.org/23041
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  10. @funny-falcon @avsej

    RCBC-97 Store bucket->pool in Ruby String

    funny-falcon authored avsej committed
    Change-Id: I041d1a6c92e7236f0563acbfb608d7ccdced42ad
    Reviewed-on: http://review.couchbase.org/23040
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  11. @funny-falcon @avsej

    RCBC-97 Store bucket->bucket in Ruby String

    funny-falcon authored avsej committed
    Change-Id: I32b141a0db98f8c71d93937079ca7868ace60714
    Reviewed-on: http://review.couchbase.org/23039
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
  12. @funny-falcon @avsej

    RCBC-97 Store bucket->{hostname,authority} as Ruby String

    funny-falcon authored avsej committed
    Change-Id: Iecf4d0ede305b835c3add661c615108334ac4f6b
    Reviewed-on: http://review.couchbase.org/23038
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
Commits on Dec 3, 2012
  1. @avsej

    Remove debugger development dependency

    avsej authored
    * Not all ruby versions support debugger (ruby-debug) library
    * Conditional dependencies in .gemspec file isn't good idea
    * There are other ways to load debugger (skip bundler, use ruby -r, etc)
    
    Change-Id: Iecb45638c24b701931e74d9743221d526e832b83
    Reviewed-on: http://review.couchbase.org/22968
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Commits on Nov 30, 2012
  1. @avsej

    Fix memory leak in authority getter

    avsej authored
    Change-Id: Ice74f8cc88b1e10c656ec8c107e7f002c39c668a
    Reviewed-on: http://review.couchbase.org/22943
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  2. @avsej

    Use 'while true' instead of 'loop' for better performance

    avsej authored
    Change-Id: I2f89787c2210876dbd6cc94906e33135f4495446
    Reviewed-on: http://review.couchbase.org/22938
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Юрий Соколов <funny.falcon@gmail.com>
    Reviewed-by: Andrey Koleshko <ka8725@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  3. @avsej

    Avoid using ruby memory allocators in extension code

    avsej authored
    Ruby doesn't expose analog for strdup(3), so the easiest solution will be to
    use libc versions of allocators everywhere, because libcouchbase itself
    doesn't provide means to override allocators and memory footprint in the
    extension code is small enough to avoid checking GC each time
    
    Change-Id: I866c35ac242397d47c84e75e6f41543dce983c30
    Reviewed-on: http://review.couchbase.org/22941
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Commits on Nov 29, 2012
  1. @avsej

    Bump version 1.2.0.z.beta5

    avsej authored
    Change-Id: I7061160d1c27f44d08c3ae81c855234341a9e770
    Reviewed-on: http://review.couchbase.org/22901
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Something went wrong with that request. Please try again.