summaryrefslogtreecommitdiffstats
path: root/src/test/librgw_file_gp.cc
diff options
context:
space:
mode:
authorMatt Benjamin <mbenjamin@redhat.com>2017-04-05 02:16:13 +0200
committerMatt Benjamin <mbenjamin@redhat.com>2017-04-13 16:35:37 +0200
commit2e66c7a7cc763c5c0d6f5db04855f60f2b2ceed3 (patch)
tree48c1262c9c25a645127e3fdeecbba7c9ddb42846 /src/test/librgw_file_gp.cc
parentMerge pull request #14413 from hansbogert/patch-3 (diff)
downloadceph-2e66c7a7cc763c5c0d6f5db04855f60f2b2ceed3.tar.xz
ceph-2e66c7a7cc763c5c0d6f5db04855f60f2b2ceed3.zip
rgw_file: introduce rgw_lookup type hints
The new type hints optimize object type deduction, when the rgw_lookup is called from an rgw_readdir callback. Fixes: http://tracker.ceph.com/issues/19623 Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Diffstat (limited to 'src/test/librgw_file_gp.cc')
-rw-r--r--src/test/librgw_file_gp.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/librgw_file_gp.cc b/src/test/librgw_file_gp.cc
index a8f1abd4ac3..d2b00fc8300 100644
--- a/src/test/librgw_file_gp.cc
+++ b/src/test/librgw_file_gp.cc
@@ -192,7 +192,8 @@ TEST(LibRGW, LOOKUP_BUCKET) {
}
extern "C" {
- static bool r2_cb(const char* name, void *arg, uint64_t offset) {
+ static bool r2_cb(const char* name, void *arg, uint64_t offset,
+ uint32_t flags) {
// don't need arg--it would point to fids
fids.push_back(fid_type(name, offset, nullptr));
return true; /* XXX ? */