diff options
author | Noah Watkins <noahwatkins@gmail.com> | 2013-01-05 11:58:38 -0800 |
---|---|---|
committer | Noah Watkins <noahwatkins@gmail.com> | 2013-01-05 11:58:38 -0800 |
commit | f6775d9fe59b691fdd376225dc05597e74281ab3 (patch) | |
tree | 13d179d97f9e02f045653d329e26b196e3372c8e | |
parent | 85824793f72a66059c8c20b50ab6f362feda3cbb (diff) | |
download | ceph-f6775d9fe59b691fdd376225dc05597e74281ab3.tar.gz |
test: test for replica ops perf counterwip-localized-read-tests
Tests that the op_send_replica performance counter exists.
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
-rw-r--r-- | src/test/libcephfs/test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index d58364a63c4..c42e5f1407d 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -810,6 +810,11 @@ TEST_P(MountedTest, ReaddirRCB) { ASSERT_LE(0, ceph_closedir(cmount, dirp)); } +TEST_P(MountedTest, HasReplicaOpPerfCounter) { + int ops = get_objecter_replica_ops(); + ASSERT_GE(ops, 0); +} + INSTANTIATE_TEST_CASE_P(ParamMount, MountedTest, ::testing::Values(false, true)); |