History log of /6.0.3/kv_engine/engines/default_engine/slabs.cc (Results 1 - 25 of 117)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.3, v7.0.1, v7.0.0, v6.6.2, v6.5.2, v6.6.1, v6.0.5, v6.6.0, v6.5.1, v6.0.4, v6.5.0, v6.0.3, v5.5.4, v5.5.5, v5.5.6, v6.0.1, v5.5.3, v6.0.0, v5.1.3, v5.5.2, v5.5.1, v5.1.2, v5.1.1
# 7d79b83c 02-Feb-2018 Trond Norbye <trond.norbye@gmail.com>

Use spdlogger for everything

Remove the old stderr and stdout loggers and use the spdlogger
everywhere (and remove the ability to install custom loggers).

Change-Id: Ibd5a5d6775

Use spdlogger for everything

Remove the old stderr and stdout loggers and use the spdlogger
everywhere (and remove the ability to install custom loggers).

Change-Id: Ibd5a5d6775970e33664341f2476dd2dee709abff
Reviewed-on: http://review.couchbase.org/88781
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v5.0.1, v5.1.0, v5.0.0, v4.6.2_ep, v4.6.2_mc, v4.6.1_ep
# 5cc551b0 10-Jan-2017 Trond Norbye <trond.norbye@gmail.com>

Fix compile warnings reported by gerrit

The gerrit configuration was incorrectly configured with
respect to warning detection causing the warning score to
be reported incorrectly. Th

Fix compile warnings reported by gerrit

The gerrit configuration was incorrectly configured with
respect to warning detection causing the warning score to
be reported incorrectly. This patch address those issues.

Change-Id: Iff731a25f1671a9a235ffd1d6678c6c4a046bb8d
Reviewed-on: http://review.couchbase.org/71807
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v4.6.0_ep
# fbfe6e1d 22-Nov-2016 Jim Walker <jim@couchbase.com>

MB-21763: Move final C modules to C++

Remove all of the C modules from memcached. Fairly simple and requires
some changes mostly for const and void* usage.

Change-Id: Ib2a741944

MB-21763: Move final C modules to C++

Remove all of the C modules from memcached. Fairly simple and requires
some changes mostly for const and void* usage.

Change-Id: Ib2a7419448448102fe1c6bd61d4b03596166ad1b
Reviewed-on: http://review.couchbase.org/70261
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...


Revision tags: v4.5.1-MP1_mc, v4.6.0-DP_mc, v4.6.0-DP_ep, v4.5.1-MP1_ep, v4.1.2-MP2_mc, v4.5.1_mc
# aa327187 18-Aug-2016 Dave Rigby <daver@couchbase.com>

MB-20586: Update memcached to use cb_malloc memory API

For all instances where we control C-style memory allocation, replace
with calls to cb_malloc/cb_realloc etc.

There are a

MB-20586: Update memcached to use cb_malloc memory API

For all instances where we control C-style memory allocation, replace
with calls to cb_malloc/cb_realloc etc.

There are a small number of instances where memory is allocated on our
behalf inside a library function, for example asprintf(). In such
cases we must still use free() to match the (internal) malloc().

Change-Id: I3e93d3a4bc2c8103e7da96ef448df1c226564528
Reviewed-on: http://review.couchbase.org/67087
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...


# 64bb76ab 18-Aug-2016 Sergey Avseyev <sergey.avseyev@gmail.com>

Do not use 'free' in DTrace probe name

Otherwise dtrace tool on FreeBSD changes 'free' symbol to 'ree' in slab.c.o

--- nm.before.txt 2016-08-18 17:32:59.595067000 +0300
++

Do not use 'free' in DTrace probe name

Otherwise dtrace tool on FreeBSD changes 'free' symbol to 'ree' in slab.c.o

--- nm.before.txt 2016-08-18 17:32:59.595067000 +0300
+++ nm.after.txt 2016-08-18 17:33:24.939326000 +0300
@@ -25,21 +25,21 @@
00000000000000ad r .L.str.9
0000000000000000 r .LCPI1_0
0000000000000010 r .LCPI1_1
- U __dtrace_memcached___slabs__allocate
- U __dtrace_memcached___slabs__allocate__failed
- U __dtrace_memcached___slabs__free
- U __dtrace_memcached___slabs__slabclass__allocate
- U __dtrace_memcached___slabs__slabclass__allocate__failed
+0000000000000000 A __dtrace_memcached___slabs-allocate
+0000000000000000 A __dtrace_memcached___slabs-allocate-failed
+0000000000000000 A __dtrace_memcached___slabs-free
+0000000000000000 A __dtrace_memcached___slabs-slabclass-allocate
+0000000000000000 A __dtrace_memcached___slabs-slabclass-allocate-failed
00000000000002e0 T add_statistics
U atol
U cb_assert_die
U cb_mutex_enter
U cb_mutex_exit
- U free
U getenv
U malloc
U memset
U realloc
+ U ree
0000000000000b90 T slabs_adjust_mem_requested
00000000000004e0 T slabs_alloc
0000000000000000 T slabs_clsid

Change-Id: I58bd531d0fd9fe919510a93de9efb08b96dbd9c4
Reviewed-on: http://review.couchbase.org/66869
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v4.6.0_mc, v4.1.2-MP1_ep, v3.1.6_ep, v4.5.0_mc, v4.5.0_ep
# 6ba7682e 12-May-2016 Trond Norbye <trond.norbye@gmail.com>

MB-19605: Check return values from snprintf

snprintf does not return -1 if the buffer is too small
which could lead to buffer overflow.

Change-Id: Iae2ecd1623a69d54d8690d92bdf6e

MB-19605: Check return values from snprintf

snprintf does not return -1 if the buffer is too small
which could lead to buffer overflow.

Change-Id: Iae2ecd1623a69d54d8690d92bdf6e66891142afa
Reviewed-on: http://review.couchbase.org/63966
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Will Gardner <will.gardner@couchbase.com>

show more ...


Revision tags: v4.1.1_ep, v3.1.5_ep, v4.1.1_mc, v3.1.4_ep, v3.1.4_mc, v3.1.5_mc, v3.1.3_ep, v4.1.0_ep, v3.1.2_ep, v4.1.0_mc, v3.1.2_mc, v3.1.1_mc, v3.1.1_ep
# 83336004 28-Aug-2015 Dave Rigby <daver@couchbase.com>

MB-16056: Replace uses of abort() with close_connection

For abort()s which were used for various logic errors while processing
connection requests, replace with closing the affected conn

MB-16056: Replace uses of abort() with close_connection

For abort()s which were used for various logic errors while processing
connection requests, replace with closing the affected connection (and
logging where appropriate).

In one instance (where the abort() really is fatal), replace with
cb_assert().

Change-Id: Iffbad8fb2f48d6f76817afb4c86ce428ff94285c
Reviewed-on: http://review.couchbase.org/54909
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v4.0.0_ep, v4.0.0_mc, v3.1.0_ep, v3.1.0_mc, v3.1.6_mc
# 8ddab992 10-Jul-2015 Trond Norbye <trond.norbye@gmail.com>

Drop per-slab stat collection

It was never used (code to report it back was never implemented
and it is purely memcached buckets specific)

Change-Id: I3fb1c085eb2c74aed3c5356a69

Drop per-slab stat collection

It was never used (code to report it back was never implemented
and it is purely memcached buckets specific)

Change-Id: I3fb1c085eb2c74aed3c5356a699bbe74982e2499
Reviewed-on: http://review.couchbase.org/53060
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...


# 3ba5dd49 25-Jun-2015 jim <jim@couchbase.com>

Valgrind of default_engine:

Problems identified running basic testsuite.

1) Fix some leaks in the test harness code.
2) Fix a leak in default_engine to ensure global_assoc is fr

Valgrind of default_engine:

Problems identified running basic testsuite.

1) Fix some leaks in the test harness code.
2) Fix a leak in default_engine to ensure global_assoc is free
3) Add a warning so that we know if we are deleting buckets when someone
still has an item reference.

Change-Id: If953a254e6f7f99a970b700f8082162ddf4f7f37
Reviewed-on: http://review.couchbase.org/52545
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v3.0.2-MP2_mc, v3.0.2_ep, v3.0.2_mc, v3.0.1_mc, v3.0.0_ep, v3.0.0-beta3_mc
# 65143ec3 04-Sep-2014 Trond Norbye <trond.norbye@gmail.com>

Rename create_instance()

This allows for explicit calling the function to create an
instance instead of having to run dlopen.

Change-Id: I79910e29825e976b7fa889a43283a06c6f1f40b

Rename create_instance()

This allows for explicit calling the function to create an
instance instead of having to run dlopen.

Change-Id: I79910e29825e976b7fa889a43283a06c6f1f40bb
Reviewed-on: http://review.couchbase.org/41189
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v3.0.0_mc
# 3bc6b8c0 15-Aug-2014 Trond Norbye <trond.norbye@gmail.com>

MSVC does not support %zu

Change-Id: Iedc909a654137cd7b471dbc97edeaf6941d02ecb
Reviewed-on: http://review.couchbase.org/40652
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested

MSVC does not support %zu

Change-Id: Iedc909a654137cd7b471dbc97edeaf6941d02ecb
Reviewed-on: http://review.couchbase.org/40652
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v3.0.0-beta2_mc, v3.0.0-beta1_mc
# 464d6f0b 17-Mar-2014 Trond Norbye <trond.norbye@gmail.com>

MB-10476: Use cb_assert which is never a noop

Change-Id: Ibf478e0dc55697ea7b9fe1aff1ac18a4ec1ea0c7
Reviewed-on: http://review.couchbase.org/34580
Reviewed-by: Michael Wiederhold <mik

MB-10476: Use cb_assert which is never a noop

Change-Id: Ibf478e0dc55697ea7b9fe1aff1ac18a4ec1ea0c7
Reviewed-on: http://review.couchbase.org/34580
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...


Revision tags: v2.5.1_ep, v2.5.1-MP1-A_mc
# ce9a18d0 22-Jan-2014 Trond Norbye <trond.norbye@gmail.com>

Remove compile warnings on windows

The code emitted too many warnings making it impossible
to see if there was any serious warnings being reported

Most of the changes are due to

Remove compile warnings on windows

The code emitted too many warnings making it impossible
to see if there was any serious warnings being reported

Most of the changes are due to return values doing conversions
that would cause some sort of data loss.

Change-Id: Ic5bca0a889d70d903baa8377a54b538d16e4edef
Reviewed-on: http://review.couchbase.org/32736
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v2.5.0_mc, v2.5.0-dp1_mc, v2.2.0_mc, 2.1.1r_ep, 2.1.0r_ep, 2.0.2r_ep
# f603fdb6 05-May-2013 Trond Norbye <trond.norbye@gmail.com>

Revamp build process

* Build using CMake (http://www.cmake.org)
* Link with tcmalloc instead of dlopen
* Build on Windows by using MSVC
* Platform library hiding threads and mute

Revamp build process

* Build using CMake (http://www.cmake.org)
* Link with tcmalloc instead of dlopen
* Build on Windows by using MSVC
* Platform library hiding threads and mutexes
* Dropped support for UDP
* Ensure that the test applications run on windows!

Change-Id: Iecf1aaa81e95564d3c0918a58d041e074e756ab0
Reviewed-on: http://review.couchbase.org/28671
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: 2.0.2r_mc, 2.0.1-macosx_ep, 2.0.1-linux_ep, 2.0.1-linux_mc, 2.0.0-couchbase_ep, 2.0.1-macosx_mc, v2.0.0_mc, v2.0.0-beta_mc, 1.8.1-MB-5845_ep, 2.0.0r_ep, 1.8.1_ep, v1.8.1_mc
# 1764fc29 13-Jun-2012 Trond Norbye <trond.norbye@gmail.com>

MB-5543 default_engine must release memory during destroy

Change-Id: If3d74e3eae1f31c2a21264801caef0e34d43305f
Reviewed-on: http://review.couchbase.org/17264
Reviewed-by: Dustin Sall

MB-5543 default_engine must release memory during destroy

Change-Id: If3d74e3eae1f31c2a21264801caef0e34d43305f
Reviewed-on: http://review.couchbase.org/17264
Reviewed-by: Dustin Sallings <dustin@spy.net>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: 1.8-MB-4901_ep, v2.0.0-dp4_mc, 1.8-MB-4738_ep, 1.8.1r_ep, 1.8.0_ep, 1.8.0r_ep, 1.6.5.6_ep, 1.7.3r_ep, 1.7.2_ep, 1.7.1.1_ep, 1.6.5.5r_ep, 1.7.1_ep, 1.7.0_ep, 1.6.5.4_ep, v1.7.0_mc
# 1b4ba6b2 01-Apr-2011 Trond Norbye <trond.norbye@gmail.com>

Use the logger instead of fprintf


Revision tags: 1.6.5.3.1_ep, 1.6.5.3_ep, v1.6.5.3_mc, 1.6.5.2.1_ep, 1.6.5.2_ep, v1.6.5.2_mc, 1.6.5.3r_ep, 1.6.5.2r_ep
# b46427f0 09-Feb-2011 Trond Norbye <trond.norbye@gmail.com>

Refactor: move default_engine to a separate directory


Revision tags: 1.6.5.1_ep, v1.6.5.1_mc, 1.6.5.1r_ep, 1.7.0r_ep, 1.6.5_ep, 1.6.5r_ep, 1.6.4.1.1_ep, 1.6.4.1_ep, 1.6.4_ep, 1.6.3_ep, 1.6.4r_ep
# 64e185ab 12-Nov-2010 Trond Norbye <trond.norbye@gmail.com>

Issue 163: Buggy mem_requested values


Revision tags: 1.6.3r_ep, 1.6.2_ep, 1.6.1_ep, 1.6.1rc2_ep, 1.6.0.4_ep, 1.6.0.3_ep, 1.6.1rc1_ep, 1.6.0.2_ep, 1.6.1pre_ep, 1.6.0.1_ep, 1.6.0_ep, 1.6.0beta4_ep, 1.6.0beta4rc1_ep, 1.6.0beta3.2b_ep, 1.6.0beta3.1_ep, 1.6.0beta3_ep, 1.6.0beta3c_ep, 1.6.0beta3b_ep
# 58df6f95 12-Aug-2010 Trond Norbye <trond.norbye@gmail.com>

Check for platform specific header files in configure

And include them through config_static.h to avoid a lot of #ifdefs in
the rest of the code.


Revision tags: 1.6.0beta3a_ep, 1.6.0beta2_ep, 1.6.0beta2rc2_ep, 1.6.0beta2rc1_ep, 1.6.0beta1.1_ep, 1.6.0beta1_ep, 1.6.0beta1rc2_ep, 1.6.0a1_ep, 1.6.0a2_ep
# de3693d8 13-Jun-2010 Trond Norbye <trond.norbye@gmail.com>

The engine should not add the stats terminator


Revision tags: 1.6.0a_ep, 0.0.1_ep
# a1e44ecf 22-Apr-2010 Trond Norbye <trond.norbye@gmail.com>

Fixed compile failure when using system malloc


# 95c3be87 25-Mar-2010 Patrick Galbraith <patg@patg.net>

Changes to memcached source required for compilation on windows


# c3fd96d9 29-Mar-2010 Sean Lynch <seanl@literati.org>

Engine can control independent stats per thread.

An engine can control the allocation and management around thread
specific stats.


# 6a2ca44b 30-Nov-2009 Trond Norbye <trond.norbye@gmail.com>

Refactor: don't use global variables in the engine


# 8c71c9e2 30-Nov-2009 Trond Norbye <trond.norbye@gmail.com>

Fixed the default chunk size


12345