History log of /3.0.2-MP2/memcached/extensions/loggers/file_logger.c (Results 1 - 19 of 19)
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, v3.0.1, v3.0.0-beta3, v3.0.0, v3.0.0-beta2
# e73832dc 22-Jul-2014 jim <jim@couchbase.com>

[MB-11548] Memcached does not handle going back in time.

1) Update testapp so that we can expose the bug.

The idea here is to move us to using a platform method that abstracts getti

[MB-11548] Memcached does not handle going back in time.

1) Update testapp so that we can expose the bug.

The idea here is to move us to using a platform method that abstracts gettimeofday.
With that in place we can apply time shifts in a programmatic fashion using the
memcached protocol extension framework.

Testapp uses testapp_extension.so to send time offset values into memcached and
cause a jump in time.

2) Add mc_time module and move memcached.c methods + add bug fix.
- This module provides the legacy API but
a) current_time is now monotonic and immune to system clock changes
b) allow correct absolute system time calculations without the I/O path needing
a system call. This works alongside real system clock changes.
c) validate that existing expiry tests and new expiry tests are now operational.

3) Remove any gettimeofday reference from memcached so that we use the new platform method.

4) As part of final testing, some system tests were performed where I manually
changed the real system clock using "sudo date" commands.

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

show more ...


# 6ae7c28b 23-Jul-2014 Trond Norbye <trond.norbye@gmail.com>

Removed unused compression support

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

Removed unused compression support

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

show more ...


# b2c13f5a 23-Jul-2014 Trond Norbye <trond.norbye@gmail.com>

MB-11611: Add unit test for file_logger

Change-Id: I1330be0c364eb7310d9f2a060c0e091580a3755f
Reviewed-on: http://review.couchbase.org/39729
Reviewed-by: Dave Rigby <daver@couchbase.c

MB-11611: Add unit test for file_logger

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

show more ...


Revision tags: v3.0.0-beta1
# fd7677df 10-Jun-2014 Trond Norbye <trond.norbye@gmail.com>

MB-11244: Don't try to cleanly shut down the logger (WIN32)

Unfortunately it looks like the C runtime from MSVC "kills" the
threads before the "atexit" handler is run, causing the progra

MB-11244: Don't try to cleanly shut down the logger (WIN32)

Unfortunately it looks like the C runtime from MSVC "kills" the
threads before the "atexit" handler is run, causing the program
to halt in one of these steps depending on the state of the
variables. Just disable the code for now.

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

show more ...


# 9353b24d 09-Apr-2014 Trond Norbye <trond.norbye@gmail.com>

Build file_logger for windows

Change-Id: Id3cc5d3028b266d401ebe4ece48410ca248e6246
Reviewed-on: http://review.couchbase.org/35516
Reviewed-by: Chris Hillery <ceej@couchbase.com>

Build file_logger for windows

Change-Id: Id3cc5d3028b266d401ebe4ece48410ca248e6246
Reviewed-on: http://review.couchbase.org/35516
Reviewed-by: Chris Hillery <ceej@couchbase.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 ...


Revision tags: v2.5.1, 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
# 524945fe 11-Sep-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6599: Some compilers give warnings about ifdefs in params

Change-Id: Ic4ec5000fb575dc2814ae46ee9013e76811e1e2a
Reviewed-on: http://review.couchbase.org/20730
Reviewed-by: Trond No

MB-6599: Some compilers give warnings about ifdefs in params

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

show more ...


# c5a4e2eb 11-Sep-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6599: There are more platforms without tm_zone

Check for it during configure and use the tzset() and tzname
fields for such platforms

Change-Id: I8f741e10fecc0fbb9c1663efe298

MB-6599: There are more platforms without tm_zone

Check for it during configure and use the tzset() and tzname
fields for such platforms

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

show more ...


# a0db7073 11-Sep-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6599: Win32 don't have the tm_zone param

Change-Id: Ib98ff39f66aa42037fe576e8089e5665b69a10ef
Reviewed-on: http://review.couchbase.org/20725
Reviewed-by: Trond Norbye <trond.norby

MB-6599: Win32 don't have the tm_zone param

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

show more ...


# fe902774 11-Sep-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6588: Use local timezone in logs

Change-Id: I143bf52435587888470a22ead48bc4faa518e231
Reviewed-on: http://review.couchbase.org/20720
Reviewed-by: Dustin Sallings <dustin@spy.net>

MB-6588: Use local timezone in logs

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

show more ...


# 7f73dd94 10-Sep-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6301: Fix compilation on win32

Change-Id: I8456762dbd5a05ed820faaeb9d0e4cfffa3715ab
Reviewed-on: http://review.couchbase.org/20690
Reviewed-by: Trond Norbye <trond.norbye@gmail.co

MB-6301: Fix compilation on win32

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

show more ...


# b07bbfe5 05-Sep-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6301 Allow to run fully unbuffered

This patch will log in plain text files unless you explicitly
tell it to log compressed.

Change-Id: I2a7cc3a311be520495a93ba77e74233841c1dd

MB-6301 Allow to run fully unbuffered

This patch will log in plain text files unless you explicitly
tell it to log compressed.

Change-Id: I2a7cc3a311be520495a93ba77e74233841c1dd7b
Reviewed-on: http://review.couchbase.org/20545
Tested-by: Farshid Ghods <farshid@couchbase.com>
Reviewed-by: Dustin Sallings <dustin@spy.net>

show more ...


# f54090cb 20-Aug-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6325 file_logger members should be static

Change-Id: I5eebf4304ca29b4c3d26b28f0b16745ee01fe7b1
Reviewed-on: http://review.couchbase.org/19898
Reviewed-by: Trond Norbye <trond.norb

MB-6325 file_logger members should be static

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

show more ...


# 185e37e1 20-Aug-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6301 Flush buffers periodically

By default it will flush it's buffer every minute, but
you may change the interval with the sleeptime parameter:

sleeptime=nnn

where

MB-6301 Flush buffers periodically

By default it will flush it's buffer every minute, but
you may change the interval with the sleeptime parameter:

sleeptime=nnn

where nnn is the number of seconds to wait between flushing
the buffer.

Change-Id: I8619c2d7578002213cc03bc5fdfb6b66908aa56c
Reviewed-on: http://review.couchbase.org/19864
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# 9cfaa08b 20-Aug-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6303: Improve date formatting for the logger

Previously we reported the number of secs from process startup.
This patch change that to print the full date. In addition
to that you

MB-6303: Improve date formatting for the logger

Previously we reported the number of secs from process startup.
This patch change that to print the full date. In addition
to that you may specify "prettyprint=true" to have it expand
the severity to a textual representation instead of numeric

Change-Id: I0c9ca196f5c64fd1b56572e2b5b4373a3be9fd9e
Reviewed-on: http://review.couchbase.org/19863
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# feab5214 16-Aug-2012 Trond Norbye <trond.norbye@gmail.com>

MB-6230 Fixed cycling of non-compressed logfiles

Change-Id: I93997cf887ef378ccf6c5b82b1e1d25d498db0e0
Reviewed-on: http://review.couchbase.org/19698
Reviewed-by: Trond Norbye <trond.

MB-6230 Fixed cycling of non-compressed logfiles

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

show more ...


# 0fe284e9 22-Jun-2012 Trond Norbye <trond.norbye@gmail.com>

MB-5649 don't use gzbuffer

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

MB-5649 don't use gzbuffer

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

show more ...


Revision tags: v1.8.1
# e1ddddf9 15-Jun-2012 Trond Norbye <trond.norbye@gmail.com>

MB-5555 Create a logger that writes log messages to disk

You enable it with the following command line parameters:

-X file_logger.so[,configuration]

You may use the followi

MB-5555 Create a logger that writes log messages to disk

You enable it with the following command line parameters:

-X file_logger.so[,configuration]

You may use the following configuration options:

filename - The name of the file to log to (we'll append .#.gz)
buffersize - The size of the internal buffer to use
cyclesize - How much data we should try to store in each file
before rotating to the next file.
loglevel - The log level we should pass straight out to standard error

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

show more ...