ceph_tid_t aio_write_seq = 0;
ceph::condition_variable aio_write_cond;
xlist<AioCompletionImpl*> aio_write_list;
- map<ceph_tid_t, std::list<AioCompletionImpl*> > aio_write_waiters;
+ std::map<ceph_tid_t, std::list<AioCompletionImpl*> > aio_write_waiters;
Objecter *objecter = nullptr;
}
void set_snap_read(snapid_t s);
- int set_snap_write_context(snapid_t seq, vector<snapid_t>& snaps);
+ int set_snap_write_context(snapid_t seq, std::vector<snapid_t>& snaps);
void get() {
ref_cnt++;
return poolid;
}
- string get_cached_pool_name();
+ std::string get_cached_pool_name();
int get_object_hash_position(const std::string& oid, uint32_t *hash_position);
int get_object_pg_hash_position(const std::string& oid, uint32_t *pg_hash_position);
::ObjectOperation *prepare_assert_ops(::ObjectOperation *op);
// snaps
- int snap_list(vector<uint64_t> *snaps);
+ int snap_list(std::vector<uint64_t> *snaps);
int snap_lookup(const char *name, uint64_t *snapid);
int snap_get_name(uint64_t snapid, std::string *s);
int snap_get_stamp(uint64_t snapid, time_t *t);
int getxattr(const object_t& oid, const char *name, bufferlist& bl);
int setxattr(const object_t& oid, const char *name, bufferlist& bl);
- int getxattrs(const object_t& oid, map<string, bufferlist>& attrset);
+ int getxattrs(const object_t& oid, std::map<std::string, bufferlist>& attrset);
int rmxattr(const object_t& oid, const char *name);
int operate(const object_t& oid, ::ObjectOperation *o, ceph::real_time *pmtime, int flags=0);
int aio_setxattr(const object_t& oid, AioCompletionImpl *c,
const char *name, bufferlist& bl);
int aio_getxattrs(const object_t& oid, AioCompletionImpl *c,
- map<string, bufferlist>& attrset);
+ std::map<std::string, bufferlist>& attrset);
int aio_rmxattr(const object_t& oid, AioCompletionImpl *c,
const char *name);
int aio_cancel(AioCompletionImpl *c);
rados_log_callback_t log_cb{nullptr};
rados_log_callback2_t log_cb2{nullptr};
void *log_cb_arg{nullptr};
- string log_watch;
+ std::string log_watch;
bool service_daemon = false;
- string daemon_name, service_name;
- map<string,string> daemon_metadata;
+ std::string daemon_name, service_name;
+ std::map<std::string,std::string> daemon_metadata;
ceph::timespan rados_mon_op_timeout{};
int wait_for_osdmap();
int pool_get_name(uint64_t pool_id, std::string *name,
bool wait_latest_map = false);
- int pool_list(std::list<std::pair<int64_t, string> >& ls);
- int get_pool_stats(std::list<string>& ls, map<string,::pool_stat_t> *result,
+ int pool_list(std::list<std::pair<int64_t, std::string> >& ls);
+ int get_pool_stats(std::list<std::string>& ls, std::map<std::string,::pool_stat_t> *result,
bool *per_pool);
int get_fs_stats(ceph_statfs& result);
bool get_pool_is_selfmanaged_snaps_mode(const std::string& pool);
b) the first rule
c) error out if no value find
*/
- int pool_create(string& name, int16_t crush_rule=-1);
- int pool_create_async(string& name, PoolAsyncCompletionImpl *c,
+ int pool_create(std::string& name, int16_t crush_rule=-1);
+ int pool_create_async(std::string& name, PoolAsyncCompletionImpl *c,
int16_t crush_rule=-1);
int pool_get_base_tier(int64_t pool_id, int64_t* base_tier);
int pool_delete(const char *name);
int pool_delete_async(const char *name, PoolAsyncCompletionImpl *c);
- int blocklist_add(const string& client_address, uint32_t expire_seconds);
+ int blocklist_add(const std::string& client_address, uint32_t expire_seconds);
- int mon_command(const vector<string>& cmd, const bufferlist &inbl,
- bufferlist *outbl, string *outs);
- void mon_command_async(const vector<string>& cmd, const bufferlist &inbl,
- bufferlist *outbl, string *outs, Context *on_finish);
+ int mon_command(const std::vector<std::string>& cmd, const bufferlist &inbl,
+ bufferlist *outbl, std::string *outs);
+ void mon_command_async(const std::vector<std::string>& cmd, const bufferlist &inbl,
+ bufferlist *outbl, std::string *outs, Context *on_finish);
int mon_command(int rank,
- const vector<string>& cmd, const bufferlist &inbl,
- bufferlist *outbl, string *outs);
- int mon_command(string name,
- const vector<string>& cmd, const bufferlist &inbl,
- bufferlist *outbl, string *outs);
- int mgr_command(const vector<string>& cmd, const bufferlist &inbl,
- bufferlist *outbl, string *outs);
+ const std::vector<std::string>& cmd, const bufferlist &inbl,
+ bufferlist *outbl, std::string *outs);
+ int mon_command(std::string name,
+ const std::vector<std::string>& cmd, const bufferlist &inbl,
+ bufferlist *outbl, std::string *outs);
+ int mgr_command(const std::vector<std::string>& cmd, const bufferlist &inbl,
+ bufferlist *outbl, std::string *outs);
int mgr_command(
- const string& name,
- const vector<string>& cmd, const bufferlist &inbl,
- bufferlist *outbl, string *outs);
- int osd_command(int osd, vector<string>& cmd, const bufferlist& inbl,
- bufferlist *poutbl, string *prs);
- int pg_command(pg_t pgid, vector<string>& cmd, const bufferlist& inbl,
- bufferlist *poutbl, string *prs);
+ const std::string& name,
+ const std::vector<std::string>& cmd, const bufferlist &inbl,
+ bufferlist *outbl, std::string *outs);
+ int osd_command(int osd, std::vector<std::string>& cmd, const bufferlist& inbl,
+ bufferlist *poutbl, std::string *prs);
+ int pg_command(pg_t pgid, std::vector<std::string>& cmd, const bufferlist& inbl,
+ bufferlist *poutbl, std::string *prs);
void handle_log(MLog *m);
- int monitor_log(const string& level, rados_log_callback_t cb,
+ int monitor_log(const std::string& level, rados_log_callback_t cb,
rados_log_callback2_t cb2, void *arg);
void get();