librados: use empty(), not size()

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-06-13 14:07:48 -07:00
parent bc8e120939
commit b91c2c99c4

View File

@ -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;
}