couchbase storage file library
C C++ Python CMake Lua
Latest commit 59f431c Aug 15, 2017 @daverigby daverigby Add support for per-filehandle statistics
Add a new function to the couchstore public API -
couchstore_get_db_filestats(). This returns an optional FHStats
interface which callers can use to obtain statistics about the
underlying file handle.

The FHStats interface initially supports two methods:

- getReadCount() to return the number of read() calls on this handle.
- getWriteCount() to return the nubmer of write() calls.

These is needed by kv_engine as it wants to obtain statistics on a
per-file basis, as recorded by StatsOps (couch-fs-stats.h).

Note that the included FileOps implementations in couchstore to *not*
suppport this API currently; one would need to use ep-engine's StatOps
to make use of them. However it may be advantageous to move some of
the stats tracking directly into couchstore in future.

Change-Id: Ie1fff97dad9fd5a95e829ff61b91a6ec5f5a975b
Reviewed-on: http://review.couchbase.org/82316
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

README.md

Couchbase (.couch) storage file C library

Currently this library can only be built as part of Couchbase Server due to dependencies on the Couchbase Platform Library and Couchbase Server CMake project. For instructions on building Couchbase Server, see the Manifest Repository.

Tests:

  1. make test

This will run the native tests, and also the Lua tests if Lua was installed at the time the configure script ran.

Tests use the CMake CTest system, and the ctest command can be used to run invidual tests and print verbose output.