]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: getattr() should return 0 if success 5422/head
authorKefu Chai <kchai@redhat.com>
Thu, 30 Jul 2015 14:19:41 +0000 (22:19 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 31 Jul 2015 09:35:31 +0000 (17:35 +0800)
commit1fb9bacd0b8da71f1f9f6d6465e6c9fe8c970ee5
tree152230e4268f2e097a97382c4e3f210b5a727739
parent57606555546272f6ec3ba1bc5fe8b7a664608b40
os/FileStore: getattr() should return 0 if success

* fix the test of ObjectStore/StoreTest.SimpleCloneTest, the expected
  return value of getattr() should be 0. otherwise it otherwise it fails
  on objectstore backends of "memstore" and "keyvaluestore".
* change FileStore::getattr() to return 0 on success
* tighten related tests in ceph_test_objectstore, to test the return value
  of getattr() using ASSERT_EQ(r, 0) instead of ASSERT_GE(r, 0)

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/FileStore.cc
src/test/objectstore/store_test.cc