summaryrefslogtreecommitdiffstats
path: root/src/rgw/services/svc_user.h
diff options
context:
space:
mode:
authorAdam C. Emerson <aemerson@redhat.com>2020-11-11 01:33:35 +0100
committerAdam C. Emerson <aemerson@redhat.com>2020-11-13 20:35:15 +0100
commit4cd42ce3328b14e64d653d7072268abbad366003 (patch)
treea9321d4988647c4990f4ab2d57283d7014866b40 /src/rgw/services/svc_user.h
parentMerge pull request #38057 from zdover23/wip-doc-dev-guide-essentials-source-c... (diff)
downloadceph-4cd42ce3328b14e64d653d7072268abbad366003.tar.xz
ceph-4cd42ce3328b14e64d653d7072268abbad366003.zip
rgw/services: No null_yield
Null yield is fine at top levels where we know what kind of thread we're running into, but do not belong in general use functions. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/rgw/services/svc_user.h')
-rw-r--r--src/rgw/services/svc_user.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/rgw/services/svc_user.h b/src/rgw/services/svc_user.h
index 8b88fa13351..5c27e587c51 100644
--- a/src/rgw/services/svc_user.h
+++ b/src/rgw/services/svc_user.h
@@ -86,29 +86,33 @@ public:
virtual int add_bucket(RGWSI_MetaBackend::Context *ctx,
const rgw_user& user,
const rgw_bucket& bucket,
- ceph::real_time creation_time) = 0;
+ ceph::real_time creation_time,
+ optional_yield y) = 0;
virtual int remove_bucket(RGWSI_MetaBackend::Context *ctx,
const rgw_user& user,
- const rgw_bucket& _bucket) = 0;
+ const rgw_bucket& _bucket, optional_yield) = 0;
virtual int list_buckets(RGWSI_MetaBackend::Context *ctx,
const rgw_user& user,
const string& marker,
const string& end_marker,
uint64_t max,
RGWUserBuckets *buckets,
- bool *is_truncated) = 0;
+ bool *is_truncated,
+ optional_yield y) = 0;
virtual int flush_bucket_stats(RGWSI_MetaBackend::Context *ctx,
const rgw_user& user,
- const RGWBucketEnt& ent) = 0;
+ const RGWBucketEnt& ent, optional_yield y) = 0;
virtual int complete_flush_stats(RGWSI_MetaBackend::Context *ctx,
- const rgw_user& user) = 0;
+ const rgw_user& user, optional_yield y) = 0;
virtual int reset_bucket_stats(RGWSI_MetaBackend::Context *ctx,
- const rgw_user& user) = 0;
+ const rgw_user& user,
+ optional_yield y) = 0;
virtual int read_stats(RGWSI_MetaBackend::Context *ctx,
const rgw_user& user, RGWStorageStats *stats,
ceph::real_time *last_stats_sync, /* last time a full stats sync completed */
- ceph::real_time *last_stats_update) = 0; /* last time a stats update was done */
+ ceph::real_time *last_stats_update,
+ optional_yield y) = 0; /* last time a stats update was done */
virtual int read_stats_async(RGWSI_MetaBackend::Context *ctx,
const rgw_user& user, RGWGetUserStats_CB *cb) = 0;