int cache_pin(const std::string& o);
int cache_unpin(const std::string& o);
- const std::string& get_pool_name() const;
+ std::string get_pool_name() const;
void locator_set_key(const std::string& key);
void set_namespace(const std::string& nspace);
aio_write_list_lock.Unlock();
}
-const string& librados::IoCtxImpl::get_cached_pool_name()
+string librados::IoCtxImpl::get_cached_pool_name()
{
std::string pn;
client->pool_get_name(get_id(), &pn);
-
return pn;
}
return poolid;
}
- const string& get_cached_pool_name();
+ string get_cached_pool_name();
int get_object_hash_position(const std::string& oid, uint32_t *hash_postion);
int get_object_pg_hash_position(const std::string& oid, uint32_t *pg_hash_position);
return s;
}
-const std::string& librados::IoCtx::get_pool_name() const
+std::string librados::IoCtx::get_pool_name() const
{
return io_ctx_impl->get_cached_pool_name();
}