History log of /3.0.2-MP2/memcached/programs/engine_testapp/mock_server.c (Results 1 - 25 of 35)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v4.6.3, v4.6.2-MP3, v4.6.5, v4.6.2, v4.5.1-MP1, v4.6.0-DP, v4.1.2-MP2, v4.5.1, v4.6.0, v4.5.0, v4.1.1, v3.1.4, v3.1.5, v4.1.0, v3.1.2, v3.1.1, v4.0.0, v3.1.0, v3.1.6, v3.0.2-MP2, v3.0.2
# 28e825f7 10-Nov-2014 Trond Norbye <trond.norbye@gmail.com>

Backport of fix for MB-11642

This is a minimum implementation of the patch provided
for Sherlock (all configuration methods removed).

Change-Id: I5be0b7247e13d55570d662f2470ffd8

Backport of fix for MB-11642

This is a minimum implementation of the patch provided
for Sherlock (all configuration methods removed).

Change-Id: I5be0b7247e13d55570d662f2470ffd841a3a7c65
Reviewed-on: http://review.couchbase.org/43047
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


Revision tags: v3.0.1, v3.0.0-beta3, v3.0.0, v3.0.0-beta2, v3.0.0-beta1
# ca994d1e 06-Jun-2014 Mike Wiederhold <mike@couchbase.com>

Fix memory leak in engine_testapp when destroying cookie

We need to decrement the reference counter when we are done with a
cookie otherwise it won't actually be freed.

Change-I

Fix memory leak in engine_testapp when destroying cookie

We need to decrement the reference counter when we are done with a
cookie otherwise it won't actually be freed.

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

show more ...


# 273bdbd0 04-Jun-2014 Dave Rigby <daver@couchbase.com>

MB-11305 Fix mock_stats type

The type used by mock stats (mock_new_independent_stats /
mock_release_independent_stats) was incorrect - it should be
'struct mock_stats'

Chang

MB-11305 Fix mock_stats type

The type used by mock stats (mock_new_independent_stats /
mock_release_independent_stats) was incorrect - it should be
'struct mock_stats'

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

show more ...


# 480eeabd 04-Jun-2014 Dave Rigby <daver@couchbase.com>

MB-11305 potential dereference of NULL pointer

As identified by clang static analyser; there is a code path where
{ptr} may be NULL - if no daemon extensions are loaded
(settings.ext

MB-11305 potential dereference of NULL pointer

As identified by clang static analyser; there is a code path where
{ptr} may be NULL - if no daemon extensions are loaded
(settings.extensions.daemon is NULL) and an attempt is made to
unregister something, then {ptr} would be dereferenced at line 8054.

Same bug is also present (and fixed) in mock_server.c

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

show more ...


# c6c32024 22-May-2014 Trond Norbye <trond.norbye@gmail.com>

Get allocation size should be const

Change-Id: I6e6091e1df56fc012b74a76c3c737f122636ff0d
Reviewed-on: http://review.couchbase.org/37431
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.

Get allocation size should be const

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

show more ...


# 4f426e26 16-May-2014 abhinavdangeti <abhinav@couchbase.com>

MB-11036: Handling race cond. in session_cas impl

- Description in design document
(link available on ticket)

Change-Id: Ic704f962e7637610b3b56c6436bed6676c977090
Reviewed-o

MB-11036: Handling race cond. in session_cas impl

- Description in design document
(link available on ticket)

Change-Id: Ic704f962e7637610b3b56c6436bed6676c977090
Reviewed-on: http://review.couchbase.org/37016
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sundararaman Sridharan <sundar@couchbase.com>
Tested-by: Sundararaman Sridharan <sundar@couchbase.com>

show more ...


# 2c217587 09-May-2014 abhinavdangeti <abhinav@couchbase.com>

MB-11036: Support for session cas validation

- Provide API for ns_server to set the session_cas.
- Provide API for ns_server to get current session_cas.
- Provide an API for ep_engin

MB-11036: Support for session cas validation

- Provide API for ns_server to set the session_cas.
- Provide API for ns_server to get current session_cas.
- Provide an API for ep_engine to validate the session_cas
for every request from ns_server
- Validate the session_cas before creating and deleting a
bucket instance.

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

show more ...


# bd0ecd24 06-May-2014 abhinavdangeti <abhinav@couchbase.com>

Provide an isDatatypeSupported API for engine

Change-Id: I2636ea5309347b538b23338d527d7b2cf38ccf13
Reviewed-on: http://review.couchbase.org/36737
Reviewed-by: Trond Norbye <trond.nor

Provide an isDatatypeSupported API for engine

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

show more ...


# 934f2578 03-May-2014 Mike Wiederhold <mike@couchbase.com>

Ref count connections in the mock server like we do in memcached

It's possible for an upr connection to call notify io complete in
a test case after we have destroyed the cookie. If this

Ref count connections in the mock server like we do in memcached

It's possible for an upr connection to call notify io complete in
a test case after we have destroyed the cookie. If this happens
then the test will crash. As a result we should ref count
connections in order to properly release them just like we do
already in memcached.

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

show more ...


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


# 879eba45 12-Mar-2014 Trond Norbye <trond.norbye@gmail.com>

Refactor: move engine_testapp to a separate directory

Change-Id: Id3c7fb98553f9e533da1691ef564005fb0e07fca
Reviewed-on: http://review.couchbase.org/34423
Reviewed-by: Trond Norbye <t

Refactor: move engine_testapp to a separate directory

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

show more ...


Revision tags: v2.5.1
# 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, v2.5.0-dp1, v2.2.0
# 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, 2.0.1-linux, 2.0.1-macosx, v2.0.0, v2.0.0-beta, v1.8.1
# efe7c797 02-May-2012 Mike Wiederhold <mike@couchbase.com>

Added hooks to allow us to grab detailed stats from tcmalloc

Change-Id: I76711327b003cc4a1eb48b79ef149a46154ff149
Reviewed-on: http://review.couchbase.org/15591
Reviewed-by: Chiyoung

Added hooks to allow us to grab detailed stats from tcmalloc

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

show more ...


# 3a64fd5b 05-Apr-2012 Mike Wiederhold <mike@couchbase.com>

Updated allocator hooks stats api to have four default stats

This basically says says that any allocator that uses this api
must be able to at least tell us about how much memory has bee

Updated allocator hooks stats api to have four default stats

This basically says says that any allocator that uses this api
must be able to at least tell us about how much memory has been
allocated, how much memory the process is using, how much memory
is free, and how much fragmentation there is. Anything extra can
be included as an allocator specific stat.

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

show more ...


# 4c1f8019 05-Apr-2012 Mike Wiederhold <mike@couchbase.com>

Remove apis for getting allocator fragmentation and allocated bytes

These details can be obtained through the getAllocatorStats()
function and there's no point in having two ways to get

Remove apis for getting allocator fragmentation and allocated bytes

These details can be obtained through the getAllocatorStats()
function and there's no point in having two ways to get them.

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

show more ...


Revision tags: v2.0.0-dp4
# 9c8f5279 20-Feb-2012 Mike Wiederhold <mike@couchbase.com>

[Backport] Added allocation hooks to engine hooks api

Change-Id: I7593d8e45ce063b45207b9c2ee0e0b7259eca2a5
Reviewed-on: http://review.couchbase.org/14013
Tested-by: Michael Wiederhol

[Backport] Added allocation hooks to engine hooks api

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

show more ...


# e1175713 20-Feb-2012 Mike Wiederhold <mikewied@comcast.net>

Added allocation hooks to engine hooks api

Change-Id: I7593d8e45ce063b45207b9c2ee0e0b7259eca2a5
Reviewed-on: http://review.couchbase.org/13779
Reviewed-by: Chiyoung Seo <chiyoung.seo

Added allocation hooks to engine hooks api

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

show more ...


Revision tags: v1.7.0
# 05a6a857 06-May-2011 Trond Norbye <trond.norbye@gmail.com>

Remove the set_tap_nack_mode from the server api

The tap commands should always return error messages just like
the other memcached commands


# 55627b40 14-Apr-2011 Trond Norbye <trond.norbye@gmail.com>

Reserve/release cookie should be able to return errors

A proxy-engine may want to intercept the calls and should be able
to return an error.


Revision tags: v1.6.5.3, v1.6.5.2
# 83835a25 07-Mar-2011 Trond Norbye <trond.norbye@gmail.com>

Use reference counting instead of timeout for pending close


# 9ef36dab 09-Feb-2011 Trond Norbye <trond.norbye@gmail.com>

Refactor: move programs to its own directory


Revision tags: v1.6.5.1
# d9017703 12-Nov-2010 Dustin Sallings <dustin@spy.net>

Don't include time travel info in abstime and reltime.


# 368a79d5 07-Nov-2010 Dustin Sallings <dustin@spy.net>

Cleaned up time travel to be more consistent.


# 2b753a82 14-Oct-2010 Trond Norbye <trond.norbye@gmail.com>

Don't install mock_server.h


12