mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
librados: use empty(), not size()
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
bc8e120939
commit
b91c2c99c4
@ -3483,7 +3483,7 @@ extern "C" int rados_objects_list_next(rados_list_ctx_t listctx, const char **en
|
||||
|
||||
if (h->list.empty()) {
|
||||
ret = lh->ctx->client->list(lh->lc, RADOS_LIST_MAX_ENTRIES);
|
||||
if (!h->list.size())
|
||||
if (h->list.empty())
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user