History log of /4.5.1-MP3/couchstore/include/ (Results 1 - 25 of 95)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: v6.0.3, v5.5.3, v5.1.2, v5.1.0, v5.0.0, v4.6.0, v4.6.0-DP, v4.5.1-MP1, v4.5.0, v4.5.1, v4.1.0
7a1ecb6131-Jul-2015 Jim Walker <jim@couchbase.com>

Enable crc32c in couchstore. Changes couchstore file version.

This increases the couchstore version number from 11 to 12.

The idea is that we wish to utilise crc32c for efficient ch

Enable crc32c in couchstore. Changes couchstore file version.

This increases the couchstore version number from 11 to 12.

The idea is that we wish to utilise crc32c for efficient checksumming.

The strategy is to bump the version number.
- version 11 files use the old crc.
- version 12 files use the new crc.

1) Brand new couchstore files will be version 12.

1a) However the API allows users to open files and force
legacy CRC, this is in-case any couchstore user doesn't
want to upgrade (e.g. erlang couchdb).

Opening a file with COUCHSTORE_OPEN_WITH_LEGACY_CRC will
force the version to 11 if the file is new. If the file is
not new the open is failed if the file version is not 11.

2) Compaction is the method to have upgrades performed.

A new compaction flag COUCHSTORE_COMPACT_FLAG_UPGRADE_DB
informs compaction that if the file to be compacted is
version 11, then the new file is version 12.

If the flag is not specified then compaction writes the new
file with same version/crc as the source file.

3) Views are not being upgraded to CRC-32C as part of this commit.
Code which opens tree-files specifies CRC32 explictly so that
they are compatible with couchdb/geocouch code. Upgrading views
to crc32c is a separate item.

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

show more ...

5815fc1c05-Aug-2015 Jim Walker <jim@couchbase.com>

Port couchstore_testapp to the gtest framework.

This is in preparation for new tests in later patches.

Move couchstore_testapp to gtest framework.

Primary changes are that:

Port couchstore_testapp to the gtest framework.

This is in preparation for new tests in later patches.

Move couchstore_testapp to gtest framework.

Primary changes are that:
1. Majority of testapp.c becomes gtest_tests.cc (now C++)
2. testapp.c remains just to call to the non-ported C tests.
3. A Documents support class replaces the global SETDOC/Doc/DocInfo
code of the old world.
4. GTest deriving classes are also created so that we can drive tests via
GTest.

Change-Id: Idaf9054f945c312a81db39d525ec887aad6a07ed
NB: pushing again following the previous revert of this patch.
Reviewed-on: http://review.couchbase.org/54309
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

ab70e51407-Aug-2015 Dave Rigby <daver@couchbase.com>

Revert "Port couchstore_testapp to the gtest framework."

Reverting to fix Sherlock build break - Sherlock builds are still using
couchbase/master and this patch requires gtest, which isn

Revert "Port couchstore_testapp to the gtest framework."

Reverting to fix Sherlock build break - Sherlock builds are still using
couchbase/master and this patch requires gtest, which isn't present in sherlock.

This reverts commit 9b5a3b8df5a8cc8f0d225adb1ae91d568c5e0a09.

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

show more ...

9b5a3b8d05-Aug-2015 Jim Walker <jim@couchbase.com>

Port couchstore_testapp to the gtest framework.

This is in preparation for new tests in later patches.

Move couchstore_testapp to gtest framework.

Primary changes are that:

Port couchstore_testapp to the gtest framework.

This is in preparation for new tests in later patches.

Move couchstore_testapp to gtest framework.

Primary changes are that:
1. Majority of testapp.c becomes gtest_tests.cc (now C++)
2. testapp.c remains just to call to the non-ported C tests.
3. A Documents support class replaces the global SETDOC/Doc/DocInfo
code of the old world.
4. GTest deriving classes are also created so that we can drive tests via
GTest.

Change-Id: I543f979e51d6c7b5454f6540fce7d9eff461cfa1
Reviewed-on: http://review.couchbase.org/54130
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...

Revision tags: v3.1.2, v3.0.3, v3.0.2, v3.0.1, v3.0.0
8fe9bd3b21-Jul-2014 Volker Mische <vmx@couchbase.com>

Make it possible to unit test static functions

In order to be able to test static functions, use the `STATIC` macro
instead of `static`. This way the static will be removed when the file

Make it possible to unit test static functions

In order to be able to test static functions, use the `STATIC` macro
instead of `static`. This way the static will be removed when the file
is compiled for the testapp.

Change-Id: I6175e24c07494bbed0e8456ac857b4d91f5b0949
Reviewed-on: http://review.couchbase.org/39635
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>

show more ...

12bc859307-Jun-2014 abhinavdangeti <abhinav@couchbase.com>

MB-11059: Offline upgrade - extended metadata

- While during an offline upgrade from pre 3.0 to
3.0. Extended metadata will not be set, as this is
a new feature in 3.0.

- Th

MB-11059: Offline upgrade - extended metadata

- While during an offline upgrade from pre 3.0 to
3.0. Extended metadata will not be set, as this is
a new feature in 3.0.

- This change is to identify documents during the
first compaction after an offline upgrade and set
the extended metadata for documents on disk
appropriately.

Change-Id: I8cefb5d57d9fa0ddcebb8f2fde95ba6189fda6a7
Reviewed-on: http://review.couchbase.org/37675
Reviewed-by: Sundararaman Sridharan <sundar@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: abhinav dangeti <abhinav@couchbase.com>

show more ...

ad9aabf229-Mar-2014 abhinavdangeti <abhinav@couchbase.com>

Add purge_seq to DbInfo

Change-Id: I4dd9c337dfedf3e3949f1dcedfaa87462f9b10b8
Reviewed-on: http://review.couchbase.org/35062
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Rev

Add purge_seq to DbInfo

Change-Id: I4dd9c337dfedf3e3949f1dcedfaa87462f9b10b8
Reviewed-on: http://review.couchbase.org/35062
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Sundararaman Sridharan <sundar@couchbase.com>
Tested-by: Sundararaman Sridharan <sundar@couchbase.com>

show more ...

a48827f115-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

MB-9661: API to count changes between two sequence numbers

Change-Id: Icf62266bf29b5981d1e9dd6d33aa784a5a90d04f
Reviewed-on: http://review.couchbase.org/32412
Reviewed-by: Michael Wi

MB-9661: API to count changes between two sequence numbers

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

show more ...

5f28318d15-Jan-2014 Sundar Sridharan <sundar.sridharan@gmail.com>

MB-9919: expose DbInfo.file_size via couchstore_db_info

Change-Id: Iae8c76b7bf6b1a305be76b401f383a47766241e5
Reviewed-on: http://review.couchbase.org/32468
Reviewed-by: Chiyoung Seo

MB-9919: expose DbInfo.file_size via couchstore_db_info

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

show more ...

1b613a6b14-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@

MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

52f9076318-Nov-2013 Trond Norbye <trond.norbye@gmail.com>

MB-9310: Build with MSVC

Change-Id: Id4e0275d771e849dcbfc21d52140dc4de33396c5
Reviewed-on: http://review.couchbase.org/30390
Tested-by: buildbot <build@couchbase.com>
Reviewed-by

MB-9310: Build with MSVC

Change-Id: Id4e0275d771e849dcbfc21d52140dc4de33396c5
Reviewed-on: http://review.couchbase.org/30390
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

580119a112-Nov-2013 Trond Norbye <trond.norbye@gmail.com>

MB-9511: Replace use of threadlocal

The old code used a threadlocal storage to stash
away the last errno reported by the operating system.

This patch replace that implementation

MB-9511: Replace use of threadlocal

The old code used a threadlocal storage to stash
away the last errno reported by the operating system.

This patch replace that implementation with one that
pass the the area to store it into the functions.

The motivation for this change is to remove the
the dependency for pthread thread local in the code
for such simple usage of threadlocal..

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

show more ...

ff64664a09-Nov-2013 Trond Norbye <trond.norbye@gmail.com>

MB-9504: Check for __GNUC__ instead of HAVE_VISIBILITY

Change-Id: I74848480d33ce14b50232b765e592c37ef370b53
Reviewed-on: http://review.couchbase.org/30227
Tested-by: buildbot <build@

MB-9504: Check for __GNUC__ instead of HAVE_VISIBILITY

Change-Id: I74848480d33ce14b50232b765e592c37ef370b53
Reviewed-on: http://review.couchbase.org/30227
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

b0f4d3de02-Oct-2013 Sundar Sridharan <sundar.sridharan@gmail.com>

CBD485-prereq: Add couchstore_set_purge_seq

In order to move the compactor into ep-engine for CBD-485
ep-engine needs to have a way to set the purge sequence number
Adding a new couc

CBD485-prereq: Add couchstore_set_purge_seq

In order to move the compactor into ep-engine for CBD-485
ep-engine needs to have a way to set the purge sequence number
Adding a new couchstore api routine
couchstore_set_purge_seq to set a sequence number into the header.

Change-Id: Id29f41d999a51604332fa0994a9be1c3b45c6a87
Reviewed-on: http://review.couchbase.org/29233
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

67ddfa2303-Aug-2013 Aaron Miller <apage43@ninjawhale.com>

Merge branch '2.1.1'

Conflicts:
src/db_compact.cc

Change-Id: I8cf3820220adbab5998b0df5e63d0a60356551e2


470f3ad815-Jul-2013 Aaron Miller <apage43@ninjawhale.com>

MB-8012 Compactor can do timestamp-based purge

Passing --purge-before <timestamp> will drop any deletion records with
an expiration time less than the timestamp.

Change-Id: I2d4

MB-8012 Compactor can do timestamp-based purge

Passing --purge-before <timestamp> will drop any deletion records with
an expiration time less than the timestamp.

Change-Id: I2d4d903f7c83d53269b4394d0e80385d75e1c199
Reviewed-on: http://review.couchbase.org/27426
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Fulu Li <fulu@couchbase.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

cd3743a425-Jun-2013 Filipe David Borba Manana <fdmanana@apache.org>

Merge remote-tracking branch 'origin/2.1.1'

* origin/2.1.1:
MB-8482 Fix GCC 4.7 strict aliasing warnings
MB-8481 Pass -Werror=strict-aliasing to GCC
MB-8481 Fix strict alia

Merge remote-tracking branch 'origin/2.1.1'

* origin/2.1.1:
MB-8482 Fix GCC 4.7 strict aliasing warnings
MB-8481 Pass -Werror=strict-aliasing to GCC
MB-8481 Fix strict aliasing issue on gcc 4.4 and below
CBD-963: empty commit to create 2.1.1 branch
2.1.0 branch at build 2.0.2-824
Revert "MB-8066 Compactor should only evict bodies on request"
Revert "MB-8020 Change compacted file layout"

Conflicts:
Makefile.am
src/db_compact.c

Change-Id: I7e09e705476da29e6b373e0ec4264d32d2e66955

show more ...


152d83dc19-Jun-2013 Aaron Miller <apage43@ninjawhale.com>

CBD-910 Allow disassociating db handle from fd

This enables a Db handle to act as a weak reference to a snapshot that
can be held without holding a file descriptor.

The handle c

CBD-910 Allow disassociating db handle from fd

This enables a Db handle to act as a weak reference to a snapshot that
can be held without holding a file descriptor.

The handle cannot be used for I/O until it is reattached to the same
file (or at least the same behind the position the handle was at) it was
detached from.

Change-Id: I5761795c993aa59b9e453665818a5103ea3eafa0
Reviewed-on: http://review.couchbase.org/27015
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Fulu Li <fulu@couchbase.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

Revision tags: 2.1.1r
16162e0f18-Jun-2013 Aaron Miller <apage43@ninjawhale.com>

CBD-910 Allow user to provide sequences as-is

A flag can be passed to the couchstore_save_* functions that will cause
Couchstore to not assign sequences, but use the ones already on the

CBD-910 Allow user to provide sequences as-is

A flag can be passed to the couchstore_save_* functions that will cause
Couchstore to not assign sequences, but use the ones already on the
DocInfo records it is provided. If any sequences are higher than the
current update_seq, update_seq will be raised to match it.

Change-Id: I8f2229ee8aca87a62b0c88ece78ab218b0430e5c
Reviewed-on: http://review.couchbase.org/27000
Reviewed-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

Revision tags: 2.1.0r
b7571d4703-Jun-2013 Aaron Miller <apage43@ninjawhale.com>

Revert "MB-8066 Compactor should only evict bodies on request"

This reverts commit b7fbf10ad13bec17aa3630a94ef944d8c5240ba7.

Conflicts:
src/db_compact.c

Change-

Revert "MB-8066 Compactor should only evict bodies on request"

This reverts commit b7fbf10ad13bec17aa3630a94ef944d8c5240ba7.

Conflicts:
src/db_compact.c

Change-Id: Id8a5a74bf4babe75856a6bc7031a7a7f15875110
Reviewed-on: http://review.couchbase.org/26682
Reviewed-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

4c9f994a03-Jun-2013 Filipe David Borba Manana <fdmanana@apache.org>

Merge remote-tracking branch 'origin/2.0.2'

* origin/2.0.2:
MB-8066 Compactor should only evict bodies on request

Change-Id: Ica37496be4246fce2c7b2dfbc34e5fc5ec889c21


a69e839103-Jun-2013 Filipe David Borba Manana <fdmanana@apache.org>

MB-7656 Add error for generic reducer errors

While this is not used/necessary for database reduce and
rereduce functions, it will be used by view reducers to
signal very view specifi

MB-7656 Add error for generic reducer errors

While this is not used/necessary for database reduce and
rereduce functions, it will be used by view reducers to
signal very view specific domain errors. Detailed information
regarding these errors will be set in the view_reducer_ctx_t
parameter passed to the reducers via the generic ctx field
of the reduce/rereduce function prototype.

Change-Id: I6375033a4c1a661c7eecc5515523bdac817c8823
Reviewed-on: http://review.couchbase.org/26672
Reviewed-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

71af6a1703-Jun-2013 Filipe David Borba Manana <fdmanana@apache.org>

MB-7656 Rename error constant for consistency

For consistency with the other error values in the enum, add
_ERROR_ to its name so that COUCHSTORE_REDUCTION_TOO_LARGE
becomes COUCHSTO

MB-7656 Rename error constant for consistency

For consistency with the other error values in the enum, add
_ERROR_ to its name so that COUCHSTORE_REDUCTION_TOO_LARGE
becomes COUCHSTORE_ERROR_REDUCTION_TOO_LARGE.

Change-Id: I6e07e903256e09749c034c66e0d3e768ce17f498
Reviewed-on: http://review.couchbase.org/26670
Reviewed-by: Fulu Li <fulu@couchbase.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

Revision tags: 2.0.2r
b7fbf10a23-May-2013 Aaron Miller <apage43@ninjawhale.com>

MB-8066 Compactor should only evict bodies on request

Change-Id: I476bd3994dc65618af3db478c2fd74381fc4c003
Reviewed-on: http://review.couchbase.org/26504
Reviewed-by: Filipe David Bo

MB-8066 Compactor should only evict bodies on request

Change-Id: I476bd3994dc65618af3db478c2fd74381fc4c003
Reviewed-on: http://review.couchbase.org/26504
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

ed723d7322-May-2013 fulu <fulu@couchbase.com>

MB-7629: Change reduce function signature for view reducers

Change-Id: Id928eb1971401d8d2834be2a95ee8b8f26665216
Reviewed-on: http://review.couchbase.org/26481
Tested-by: Fulu Li <fu

MB-7629: Change reduce function signature for view reducers

Change-Id: Id928eb1971401d8d2834be2a95ee8b8f26665216
Reviewed-on: http://review.couchbase.org/26481
Tested-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

1234