CEPH filesystem development
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@dreamhost.com>
To: Eric_YH_Chen@wistron.com
Cc: ceph-devel@vger.kernel.org
Subject: Re: Suggest to return [] when no image in the pool
Date: Mon, 07 Nov 2011 09:27:18 -0800	[thread overview]
Message-ID: <4EB814F6.1090603@dreamhost.com> (raw)
In-Reply-To: <8512670932FB654F81AF0FEF1BE6D49D68DEDB@WHQBEMAIL1.whq.wistron>

On 11/07/2011 01:43 AM, Eric_YH_Chen@wistron.com wrote:
> Hi, developers,
>
> When I used the API in rbd.py,
>
> I found RBD().list(ioctx) would return [""] when there is no image in the pool.
>
> I suggest it should return [] in this case. It would avoid some programming problem. Thanks!
>
> regards,
>
> Eric/Pjack

Fixed by 34d80397f73a847f31aad6f00afd0eeb3d526ca0. Thanks for reporting 
this!

Josh

      reply	other threads:[~2011-11-07 17:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03  3:55 Cannot execute rados.py with sudoer Eric_YH_Chen
2011-11-03  4:48 ` Gregory Farnum
2011-11-03  5:24   ` Eric_YH_Chen
2011-11-03 17:51     ` Tommi Virtanen
2011-11-04  1:45       ` Eric_YH_Chen
2011-11-04 16:34         ` Tommi Virtanen
2011-11-07  9:43   ` Suggest to return [] when no image in the pool Eric_YH_Chen
2011-11-07 17:27     ` Josh Durgin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EB814F6.1090603@dreamhost.com \
    --to=josh.durgin@dreamhost.com \
    --cc=Eric_YH_Chen@wistron.com \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox