Merge branch 'next'
OpRequest: rmw_flags may actually be 0

If the operation includes only an invalid method,
the flags will be 0.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
doc: fix rst for watch/notify internals

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-test.install:  remove cepkfs-test.jar

This was merged prematurely to mast.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
Build: Change build to always use system leveldb

Dynamically link to the leveldb installed on the system rather than
statically linking ceph copy.  Remove the --with-system-leveldb config
option, and add a requirement for leveldb libraries for rpm and debian
packages.  Bug 3945.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
remove leveldb from master branch

Since we now build against system leveldb and no longer
against a git submodule, drop the submodule from git master.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
add src/leveldb to .gitignore

Add src/leveldb to .gitignore in master, since the directory
may get checked out by older branches. Ignore it since it's not
needed in master.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
configure.ac: check for libsnappy

Since libsnappy is needed by leveldb, check if the lib is installed
before check for leveldb.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
ceph.spec.in: fix leveldb handling

There is no need to add leveldb as 'Requires:'. The RPM build system
will find this dependency by itself.

Add leveldb-devel to BuildRequires: since this is what the package
really needs to build ceph correctly with libleveldb1.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
README: add leveldb-dev to package list needed for build

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
debian/control: add libleveldb-dev to Build-Depends:

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
debian/control: fix Depends

Remove request for libleveldb1 version > 1.2. Every libleveldb1 package
should work, otherwise the SO name/version of the library should change.

Fixes: #3945

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
SyntheticClient.cc: use static_cast instead of C-Style cast

Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
CephBroker.h: use static_cast instead of C-Style cast

Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
TextTable: pass const string by refrence to define_column()

Pass 'const string heading' by reference to define_column().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
ceph_argparse.cc: accept also 0/1 for boolean injectargs

Accept also 0 (as false) and 1 (true) as arguments for
boolean option on injectargs.

Fixes: #4261

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
common/armor.c: reduce scope of some variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
cls_acl.cc: remove unused variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
cls_crypto.cc: remove some unused variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Merge pull request #80 from dalgaaf/wip-da-4261

ceph_argparse.cc: accept also 0/1 for boolean injectargs

Reviewed-by: Sage Weil <sage@inktank.com>