History log of /3.0.3-GA/ep-engine/src/stored-value.h (Results 1 - 25 of 274)
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
# 5fa87880 16-Feb-2015 abhinavdangeti <abhinav@couchbase.com>

MB-10370: Replications' set/delWithMetas to use replication threshold

The setWithMetas and deleteWithMetas issue by consumers for
intra-cluster replication will need to work on tapThrott

MB-10370: Replications' set/delWithMetas to use replication threshold

The setWithMetas and deleteWithMetas issue by consumers for
intra-cluster replication will need to work on tapThrottleThreshold
as opposed to mutation_memory_threshold.

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

show more ...


Revision tags: v3.0.2, v3.0.0
# 1cb55ca0 22-May-2014 Trond Norbye <trond.norbye@gmail.com>

Add more statistics information for StoredValue objects

Track the number of them, their size and overhead

Change-Id: Ibafde84fd950c76ec9878fa903bf593836886b54
Reviewed-on: http:

Add more statistics information for StoredValue objects

Track the number of them, their size and overhead

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

show more ...


# 21d63272 08-May-2014 Trond Norbye <trond.norbye@gmail.com>

Use getNKey() instead of getKey().length()

This is a preparation for stop using std::string for the key

Change-Id: I0ccb201cfaa49bbeafd45ad1576e632b300a8106
Reviewed-on: http://

Use getNKey() instead of getKey().length()

This is a preparation for stop using std::string for the key

Change-Id: I0ccb201cfaa49bbeafd45ad1576e632b300a8106
Reviewed-on: http://review.couchbase.org/36813
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.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 ...


# 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 ...


# 3c735908 06-Mar-2014 Matt Ingenthron <ingenthr@cep.net>

Remove incorrect doc comment about vb arg to HashTable ctor.

Change-Id: Ied5466a2e070bc531b6619307e81b9f3f017d9a5
Reviewed-on: http://review.couchbase.org/34240
Reviewed-by: Trond No

Remove incorrect doc comment about vb arg to HashTable ctor.

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

show more ...


Revision tags: v2.5.1
# 53e8562f 29-Jan-2014 Chiyoung Seo <chiyoung.seo@gmail.com>

Track the number of items per vbucket with the full eviction.

As the full eviction ejects an item from cache completely, we
need a new way of tracking the number of item per vbucket when

Track the number of items per vbucket with the full eviction.

As the full eviction ejects an item from cache completely, we
need a new way of tracking the number of item per vbucket when
the full eviction is chosen.

This change basically adds a new flag to the hash table item
(i.e., StoredValue) to indicate whether an item is newly added
to the cache or not, and then increments the item counter. Then,
the flusher figures out whether the counter should be decremented
because the item already exists on the DB file.

Change-Id: I492c03053238a4baa155eb76575893da323d26c4
Reviewed-on: http://review.couchbase.org/32985
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@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 ...


# 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 ...


# 30cbfece 25-Nov-2013 Trond Norbye <trond.norbye@gmail.com>

Remove some unixism

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

Remove some unixism

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

show more ...


# 7c6809d2 07-Nov-2013 Trond Norbye <trond.norbye@gmail.com>

Start migrate the API for our Atomics to look like std::atomic

This patch change the Atomic class CouchbaseAtomic, and change
the API so that:
get() => load()
set() => store(

Start migrate the API for our Atomics to look like std::atomic

This patch change the Atomic class CouchbaseAtomic, and change
the API so that:
get() => load()
set() => store()
cas() => compare_exchange_strong()

and move some of methods that used to be members as
template functions.

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

show more ...


# 29d4728b 13-Nov-2013 Trond Norbye <trond.norbye@gmail.com>

MB-9526: Add getRandomKey

This is used by the UI to just grab a random key in the
cache

Change-Id: I60e38d9da875656e1d7223119402f44d7c2e4b17
Reviewed-on: http://review.couch

MB-9526: Add getRandomKey

This is used by the UI to just grab a random key in the
cache

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

show more ...


# a4d46f6b 01-Jul-2013 Mike Wiederhold <mike@couchbase.com>

MB-8988: Sequence numbers are assigned by the CheckpointManager

Change-Id: If3fdf08e1091ad36ea8bcd30b10cd3803db009ae
Reviewed-on: http://review.couchbase.org/29226
Reviewed-by: Chiyo

MB-8988: Sequence numbers are assigned by the CheckpointManager

Change-Id: If3fdf08e1091ad36ea8bcd30b10cd3803db009ae
Reviewed-on: http://review.couchbase.org/29226
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@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 ...


# 163bed90 09-Sep-2013 Chiyoung Seo <chiyoung.seo@gmail.com>

Minor formatting and Remove unused unlocked_restoreItem()

Change-Id: I00f1e7a238176d9983290905b091ebb53177fc4c
Reviewed-on: http://review.couchbase.org/29153
Reviewed-by: Sundararama

Minor formatting and Remove unused unlocked_restoreItem()

Change-Id: I00f1e7a238176d9983290905b091ebb53177fc4c
Reviewed-on: http://review.couchbase.org/29153
Reviewed-by: Sundararaman Sridharan <sundar.sridharan@gmail.com>
Tested-by: Sundararaman Sridharan <sundar.sridharan@gmail.com>

show more ...


# cf188e70 14-Oct-2013 Trond Norbye <trond.norbye@gmail.com>

Remove compile warnings

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

Remove compile warnings

Change-Id: I7e4caa43e9e6488485dc08294beeaf1dd4c2af3e
Reviewed-on: http://review.couchbase.org/29581
Tested-by: Trond Norbye <trond.norbye@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 ...


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

MB-8516: Change id to bySeqno in StoredValue class

Since we will have two different sequence numbers in our
StoredValue class we should give each one a more specific
name to reduce c

MB-8516: Change id to bySeqno in StoredValue class

Since we will have two different sequence numbers in our
StoredValue class we should give each one a more specific
name to reduce confusion about what variables actually
represent.

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

show more ...


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

MB-8516: Change seqno to revSeqno in StoredValue class

Since we will have two different sequence numbers in our
StoredValue class we should give each one a more specific
name to redu

MB-8516: Change seqno to revSeqno in StoredValue class

Since we will have two different sequence numbers in our
StoredValue class we should give each one a more specific
name to reduce confusion about what variables actually
represent.

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

show more ...


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

MB-8497: Remove unnecessary memory accounting code

This extra code was needed because of the alignment stuff
in the previous commit. The new code actually gets the same
numbers but u

MB-8497: Remove unnecessary memory accounting code

This extra code was needed because of the alignment stuff
in the previous commit. The new code actually gets the same
numbers but using less lines of code and less atomic ops.

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

show more ...


# 5c12ee0a 19-Jun-2013 Mike Wiederhold <mike@couchbase.com>

MB-8497: Don't track alignment for stored value size function

This code was an attempt at making the sizeof memory accounting
more accurate. We don't use this type of accounting anymore

MB-8497: Don't track alignment for stored value size function

This code was an attempt at making the sizeof memory accounting
more accurate. We don't use this type of accounting anymore and
this actually makes things much more difficult to keep track of
since we do not adjust for alignment everywhere. On top of this
not all memory allocations are done at 8 byte intervals so this
is technically not even correct code.

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

show more ...


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

MB-8496: Don't require a value for non-resident meta-data

This change removes the requirement that a non-resident item
needs to have a blob that contains the valur length. This
chang

MB-8496: Don't require a value for non-resident meta-data

This change removes the requirement that a non-resident item
needs to have a blob that contains the valur length. This
change introduces a new flag that signals if an item has been
deleted. This change will also reduce meta data by 16 bytes for
each non-resident meta item.

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

show more ...


# 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 ...


1234567891011