History log of /3.0.3-GA/ep-engine/src/item.h (Results 1 - 25 of 85)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v4.6.5, v4.6.3, v4.6.4, v4.6.2, v4.6.1, v4.6.0, v4.6.0-DP, v4.5.1, v4.1.2, v3.1.6, v4.5.0, v4.1.1, v3.1.5, v3.1.4, v3.1.3, v4.1.0, v3.1.2, v3.1.1, v4.0.0, v3.1.0, v3.0.2
# dfe4c89c 14-Nov-2014 Sriram Ganesan <sriram@couchbase.com>

MB-12647: Ensure CAS value will always be unique

In windows, the gethrtime() returns the same timestamp when 2 requests
are made in a very short interval, thus causing the same CAS to re

MB-12647: Ensure CAS value will always be unique

In windows, the gethrtime() returns the same timestamp when 2 requests
are made in a very short interval, thus causing the same CAS to return.
This can race conditions with 2 consecutive requests, resulting in
data corruption.

Change-Id: I4f396de3f14129504ca406ebb8d4c7a9f3a89bd8
Reviewed-on: http://review.couchbase.org/43271
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


Revision tags: v3.0.0
# 8a277c1f 22-May-2014 Trond Norbye <trond.norbye@gmail.com>

Add const for objectregistry

Change-Id: I686b1f4241d92b05b059a329f3c80241551610a1
Reviewed-on: http://review.couchbase.org/37434
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

Add const for objectregistry

Change-Id: I686b1f4241d92b05b059a329f3c80241551610a1
Reviewed-on: http://review.couchbase.org/37434
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# def96a49 16-Apr-2014 Sriram Ganesan <sriram@couchbase.com>

MB-10702: Include the proper NRU bits in an UPR mutation

When sending an UPR mutation, we need to include the proper
NRU bits of the stored value.

Change-Id: If7fd01e34079161212

MB-10702: Include the proper NRU bits in an UPR mutation

When sending an UPR mutation, we need to include the proper
NRU bits of the stored value.

Change-Id: If7fd01e34079161212cf213fb62cafefa9248f7c
Reviewed-on: http://review.couchbase.org/35897
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# c7dadb61 09-Apr-2014 abhinavdangeti <abhinav@couchbase.com>

MB-10711: Datatype adjustment for legacy clients

New engine API, for memcached to update datatype,
in case of legacy clients

For Unknown commands:
- SET_RET_META
- ADD_R

MB-10711: Datatype adjustment for legacy clients

New engine API, for memcached to update datatype,
in case of legacy clients

For Unknown commands:
- SET_RET_META
- ADD_RET_META
- SET_WITH_META
- ADD_WITH_META
check if document is JSON, if datatype is set to
RAW_BYTES, once before going ahead with the operation.
If the document were JSON and the datatype indicates
otherwise, adjust the datatype.

Change-Id:I5ffdd66062ceba79306495fa1c94e7f311a77150
Reviewed-on: http://review.couchbase.org/35170
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# c649b2d9 17-Mar-2014 Trond Norbye <trond.norbye@gmail.com>

MB-10476: Use cb_assert instead of assert

If compiled with -DNDEBUG assert is an empty macro

Change-Id: I266ddf8a8fe3f1a388a9d8ce3d21f28614c35315
Reviewed-on: http://review.couc

MB-10476: Use cb_assert instead of assert

If compiled with -DNDEBUG assert is an empty macro

Change-Id: I266ddf8a8fe3f1a388a9d8ce3d21f28614c35315
Reviewed-on: http://review.couchbase.org/34579
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# 24e9a1df 10-Mar-2014 Mike Wiederhold <mike@couchbase.com>

Fix various memory leak/not initialized errors

These were found with valgrind and fix the failover log unit test
which was sporadically failing. I plan on doing a second pass of
this

Fix various memory leak/not initialized errors

These were found with valgrind and fix the failover log unit test
which was sporadically failing. I plan on doing a second pass of
this stuff, but want to get this in quickly since if fixes an issue.

Change-Id: Ic13e6439700d61c87e8500da8eca7b2e8260f0e5
Reviewed-on: http://review.couchbase.org/34354
Reviewed-by: abhinav dangeti <abhinav@couchbase.com>
Tested-by: abhinav dangeti <abhinav@couchbase.com>

show more ...


# 82a6f303 05-Mar-2014 abhinavdangeti <abhinav@couchbase.com>

MB-10210: Handling Appends/Prepends/Incrs/Decrs

- Appends/Prepends:
Handle the scenario where data were compressed
and data being added was not or vice versa.
Return value:

MB-10210: Handling Appends/Prepends/Incrs/Decrs

- Appends/Prepends:
Handle the scenario where data were compressed
and data being added was not or vice versa.
Return value:
ENGINE_SUCCESS: if succeeds
ENGINE_E2BIG: if new value exceeds limit
ENGINE_FAILED: if snappy operations fail, check
memory to ensure out-of-memory situation.

- Incrs/Decrs:
Return ENGINE_EINVAL in case of arithmetic operations
on compressed data.

Change-Id: I6f7d8b09e86572e199a8ece9a40fa2afe7669db4
Reviewed-on: http://review.couchbase.org/33587
Reviewed-by: abhinav dangeti <abhinav@couchbase.com>
Tested-by: abhinav dangeti <abhinav@couchbase.com>

show more ...


Revision tags: v2.5.1
# cc675a38 12-Feb-2014 Mike Wiederhold <mike@couchbase.com>

When sorting items for persistence sort similar key by highest seqno

This allows us to deduplicate similar keys and keep the one with the
highest sequence number.

Change-Id: I4b

When sorting items for persistence sort similar key by highest seqno

This allows us to deduplicate similar keys and keep the one with the
highest sequence number.

Change-Id: I4b127dcebb64c904ad18e06348b991a9cd76bfab
Reviewed-on: http://review.couchbase.org/33461
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


# 81ceb2d8 31-Jan-2014 Chiyoung Seo <chiyoung.seo@gmail.com>

Revert "MB-9866 StoredValue now contains queued_item instance."

This reverts commit eb1cc91fd8299e61736030fe2faececdf66be3c6.

Change-Id: I7a1ab1a22dc108bf0c51791dc50dca04af46be4d

Revert "MB-9866 StoredValue now contains queued_item instance."

This reverts commit eb1cc91fd8299e61736030fe2faececdf66be3c6.

Change-Id: I7a1ab1a22dc108bf0c51791dc50dca04af46be4d
Reviewed-on: http://review.couchbase.org/33065
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# eb1cc91f 29-Jan-2014 David Liao <liaodw@gmail.com>

MB-9866 StoredValue now contains queued_item instance.

Use reference-counted Item (queued_item) class inside StoredValue
class so that CheckPoint Manger and Hashtable can share keys and

MB-9866 StoredValue now contains queued_item instance.

Use reference-counted Item (queued_item) class inside StoredValue
class so that CheckPoint Manger and Hashtable can share keys and
metadata of items instead of keeping separate copies.
This will greatly decrease memory usage for cases where there
is big number of small sized items.

Change-Id: I304ef139dc08f99535e41abee81d4fa285a8b228
Reviewed-on: http://review.couchbase.org/32700
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# 74519d06 14-Jan-2014 abhinavdangeti <abhinav@couchbase.com>

MB-9907: Assume correct length of valueBlob

- Additional refactoring

Change-Id: I9415fada610e9f4ed18e7ad606ff5c42cd44ec49
Reviewed-on: http://review.couchbase.org/32363
Revi

MB-9907: Assume correct length of valueBlob

- Additional refactoring

Change-Id: I9415fada610e9f4ed18e7ad606ff5c42cd44ec49
Reviewed-on: http://review.couchbase.org/32363
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Volker Mische <volker.mische@gmail.com>

show more ...


# ca67f157 14-Jan-2014 abhinavdangeti <abhinav@couchbase.com>

MB-8552: Support for datatype field

- As part of extended flexible metadata
- Requires: http://review.couchbase.org/#/c/30974/

In memory::
_________________________________

MB-8552: Support for datatype field

- As part of extended flexible metadata
- Requires: http://review.couchbase.org/#/c/30974/

In memory::
__________________________________________________
| key | MetaData (cas,exp,flags) | VALUE BLOB |
|_____|_____________________________|______________|

VALUE BLOB:
__________________________________________________
| FLEX_META_CODE (1B) | DATATYPE (1B) | VALUE BLOB |
|_____________________|_______________|____________|

FLEX_META_CODE = 0x01, indicating one field in the extended
metadata section

In couchstore::

METADATA BUFFER:
_______________________________________________________________________
| cas (8B) | exp (4B) | flags (4B) | FLEX_META_CODE (1B) | datatype(1B) |
|__________|__________|____________|_____________________|______________|

Change-Id: Ifb3bc59892130f2fddf02f2188773ba3a67f2ce1
Reviewed-on: http://review.couchbase.org/31046
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# 9d8a9725 23-Dec-2013 Trond Norbye <trond.norbye@gmail.com>

Move towards using C++11 atomics

Start by renamimg all use of Atomics that doesn't "break" by
switching to std::atomic to AtomicValue (when the transition
is done we'll rename everyt

Move towards using C++11 atomics

Start by renamimg all use of Atomics that doesn't "break" by
switching to std::atomic to AtomicValue (when the transition
is done we'll rename everything back).

Change-Id: I3f694856dab498c565806c9ac1ee5baf3bc07b17
Reviewed-on: http://review.couchbase.org/31333
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# a00c1a75 23-Dec-2013 David Liao <liaodw@gmail.com>

MB-9741 Replace usage of QueuedItem with Item class.

This is the first phase of reducing memory used by keys/metadata of items.
This checkin now replace QueuedItem with Item used by Chec

MB-9741 Replace usage of QueuedItem with Item class.

This is the first phase of reducing memory used by keys/metadata of items.
This checkin now replace QueuedItem with Item used by Checkpoing Manager
and prepares for using Item class in StoredValue. QueuedItem is removed
from the code base.

Change-Id: I6afecac51410f209155cf357f6a276c20670b026
Reviewed-on: http://review.couchbase.org/31050
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


# 9a8679e2 17-Oct-2013 Chiyoung Seo <chiyoung.seo@gmail.com>

CBD-1034 Support the full eviction as an optional eviction policy

When an item is evicted from the cache, its value is only
evicted from memory by default. To further reduce the memory

CBD-1034 Support the full eviction as an optional eviction policy

When an item is evicted from the cache, its value is only
evicted from memory by default. To further reduce the memory
overhead, this change supports the full eviction as an additional
option, which removes an item's key, metadata, and value from the
cache. The eviction policy can be chosen when a bucket is
instantiated.

If the full eviction option is chosen, this results in affecting
lots of engine APIs and also causes more disk IO overhead.
For example, CAS for a non-resident item will require a backgroud
fetch because it should know the item's CAS value.

Change-Id: I2edbe2b12527ef1c1fb31992cb04afbb7c078dac
Reviewed-on: http://review.couchbase.org/29155
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# d7d9d0ba 05-Nov-2013 Volker Mische <vmx@couchbase.com>

MB-9469: include cstring to get std::memcpy

Change-Id: I88d0cc8ce3ddcd1ce245a0e095d5d1043a3c08a3
Reviewed-on: http://review.couchbase.org/30060
Tested-by: Volker Mische <volker.misch

MB-9469: include cstring to get std::memcpy

Change-Id: I88d0cc8ce3ddcd1ce245a0e095d5d1043a3c08a3
Reviewed-on: http://review.couchbase.org/30060
Tested-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# e07dbb19 25-Jun-2013 Mike Wiederhold <mike@couchbase.com>

MB-8516: Rename seqno and id variables in Item class

This change makes the code more readable by changing
some old variable names to make them more descriptive
based on what they do

MB-8516: Rename seqno and id variables in Item class

This change makes the code more readable by changing
some old variable names to make them more descriptive
based on what they do today.

seqno -> revSeqno
id -> bySeqno

Change-Id: I6aec6693a5c46ed08f861120e17afc684f8d8802
Reviewed-on: http://review.couchbase.org/27335
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>

show more ...


Revision tags: 2.1.1r, 2.1.0r, 2.0.2r, 2.0.1-macosx, 2.0.1-linux
# 66eb94d0 17-Jan-2013 Mike Wiederhold <mike@couchbase.com>

MB-7728: Add copyright headers to all files

This is something that our cpplint tool turns on and it makes
our product look a little bit more profesional. I have also
enabled the tool

MB-7728: Add copyright headers to all files

This is something that our cpplint tool turns on and it makes
our product look a little bit more profesional. I have also
enabled the tool to begin checking for these headers so it will
start complaining if we add a new file without a copyright header.

Change-Id: Ie956fdf7027bf56d9665ee455acd3c109fcacc76
Reviewed-on: http://review.couchbase.org/24560
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Reviewed-by: Jin Lim <jin@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


Revision tags: 2.0.0-couchbase
# 244c0146 26-Nov-2012 Mike Wiederhold <mike@couchbase.com>

MB-7461: Alphabetize includes to conform with c++ standards

Change-Id: I71333dedada6530713b90184857bab9ac49d13df
Reviewed-on: http://review.couchbase.org/23515
Reviewed-by: Jin Lim <

MB-7461: Alphabetize includes to conform with c++ standards

Change-Id: I71333dedada6530713b90184857bab9ac49d13df
Reviewed-on: http://review.couchbase.org/23515
Reviewed-by: Jin Lim <jin@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


# 8f48f64b 23-Nov-2012 Mike Wiederhold <mike@couchbase.com>

MB-7426: Fix all header defines to conform with cpplint

Change-Id: I8253b640bc49ee8a0fabbb39ece73c2efdb906d5
Reviewed-on: http://review.couchbase.org/23510
Reviewed-by: Michael Wiede

MB-7426: Fix all header defines to conform with cpplint

Change-Id: I8253b640bc49ee8a0fabbb39ece73c2efdb906d5
Reviewed-on: http://review.couchbase.org/23510
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


# fc9615cd 23-Nov-2012 Mike Wiederhold <mike@couchbase.com>

MB-7405: Make extension for all header files .h

Change-Id: I7badb1e71c038b6498296c2893ccdbd47c2f0f87
Reviewed-on: http://review.couchbase.org/23483
Reviewed-by: Michael Wiederhold <m

MB-7405: Make extension for all header files .h

Change-Id: I7badb1e71c038b6498296c2893ccdbd47c2f0f87
Reviewed-on: http://review.couchbase.org/23483
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


Revision tags: 1.8.1-MB-5845, 2.0.0r
# b4a94111 23-Jul-2012 Mike Wiederhold <mike@couchbase.com>

MB-5995: Change get_meta packet format

This change moves the appended meta data into the extra portion
of the memcached header.

Change-Id: Id392228000bea4ebca5ab694d45db084a9aa5

MB-5995: Change get_meta packet format

This change moves the appended meta data into the extra portion
of the memcached header.

Change-Id: Id392228000bea4ebca5ab694d45db084a9aa59e3
Reviewed-on: http://review.couchbase.org/18718
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


# bf3b555b 15-Aug-2012 Mike Wiederhold <mike@couchbase.com>

MB-6141: Move ep-engine source files into src directory

Change-Id: I6068c3aa7bc92d45bce4dd3097079665d807ac75
Reviewed-on: http://review.couchbase.org/19664
Reviewed-by: Michael Wiede

MB-6141: Move ep-engine source files into src directory

Change-Id: I6068c3aa7bc92d45bce4dd3097079665d807ac75
Reviewed-on: http://review.couchbase.org/19664
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


# bb37dc66 28-Jul-2012 Chiyoung Seo <chiyoung.seo@gmail.com>

MB-6045 CAS shouldn't be zero for TAP_DELETION replication

Change-Id: I84acb8d79f3f94570529abd9e51b6e87e45c65ab
Reviewed-on: http://review.couchbase.org/18983
Reviewed-by: Jin Lim <j

MB-6045 CAS shouldn't be zero for TAP_DELETION replication

Change-Id: I84acb8d79f3f94570529abd9e51b6e87e45c65ab
Reviewed-on: http://review.couchbase.org/18983
Reviewed-by: Jin Lim <jin@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>

show more ...


# 0d18b09b 11-Jul-2012 Mike Wiederhold <mike@couchbase.com>

MB-5835: Removed duplicate fields in set/delete with meta

This change also changes the rev seqno from 32 to 64 bits

Change-Id: I3074c4c733aacac3e86fe322c932a150f4ce6bf5
Reviewed

MB-5835: Removed duplicate fields in set/delete with meta

This change also changes the rev seqno from 32 to 64 bits

Change-Id: I3074c4c733aacac3e86fe322c932a150f4ce6bf5
Reviewed-on: http://review.couchbase.org/18063
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Reviewed-by: Junyi Xie <junyi.couchbase@gmail.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


1234