Revert "MB-8020 Change compacted file layout"

This reverts commit c18c5b2a71ad5d60897bbdff6b90c4c2e7a0382e.

Conflicts:
	src/db_compact.c

Change-Id: Ifa7daefd61738cc285b8c9dbadb3bd3c66e054fb
Reviewed-on: http://review.couchbase.org/26681
Reviewed-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: 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-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>
2.1.0 branch at build 2.0.2-824

Change-Id: I58309942d33c24802715a59bd4a5395de5b945d9
Reviewed-on: http://review.couchbase.org/26694
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBD-963:  empty commit to create 2.1.1 branch

Change-Id: Ie3f1c4b0d0ce16bdf6ceb966b27906a64c8046e1
Reviewed-on: http://review.couchbase.org/27011
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
MB-8481 Fix strict aliasing issue on gcc 4.4 and below

GNU GCC 4.4.7 and Apple's LLVM'ed GCC 4.2.1 give the following
strict-aliasing warning when compiling with -O2 (which is the
level we use for GNU/Linux releases) or -O3 and -Wstrict-aliasing=2/3
to the compiler:

src/couch_db.c: In function 'find_header_at_pos':
src/couch_db.c:50: warning: dereferencing type-punned pointer will break strict-aliasing rules

In order to get the warning on Apple's 4.2.1, pass -fstrict-aliasing
to the compiler, as the strict-aliasing optimization is not enabled
by default for -O2 level (and above) on GCC versions prior to 4.4.

Currently for GNU/Linux releases at least, we use GCC 4.4 (see
https://github.com/couchbase/voltron/blob/master/README.md).

Change-Id: Ie26ddb68fa3e506b126c99282c2162f35abdf88e
Reviewed-on: http://review.couchbase.org/26994
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-on: http://review.couchbase.org/27022
MB-8481 Pass -Werror=strict-aliasing to GCC

So that strict aliasing warnings cause compilation to fail.
This class of warnings is too serious and shouldn't ever be
ignored.

Change-Id: I6da8fb9f11834673f309b9f152035d7b11821ffb
Reviewed-on: http://review.couchbase.org/26995
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Fulu Li <fulu@couchbase.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-on: http://review.couchbase.org/27023
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
MB-8482 Fix GCC 4.7 strict aliasing warnings

src/node_types.h: In function 'decode_kv_length':
src/node_types.h:82:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/node_types.h: In function 'encode_kv_length':
src/node_types.h:91:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

Change-Id: Idf1e91f8346056c7d1e7d66a05adaaa7485ba2f2
Reviewed-on: http://review.couchbase.org/27021
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
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