* [PATCH] pybind: trivial fix of missing argument
@ 2011-12-08 14:35 Henry C Chang
2011-12-08 21:32 ` Josh Durgin
0 siblings, 1 reply; 2+ messages in thread
From: Henry C Chang @ 2011-12-08 14:35 UTC (permalink / raw)
To: ceph-devel; +Cc: Henry C Chang
Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com>
---
src/pybind/rados.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/pybind/rados.py b/src/pybind/rados.py
index 3d00938..e43cb04 100755
--- a/src/pybind/rados.py
+++ b/src/pybind/rados.py
@@ -450,7 +450,7 @@ written." % (self.name, ret, length))
ret = self.librados.rados_read(self.io, c_char_p(key), ret_buf,
c_size_t(length), c_uint64(offset))
if ret < 0:
- raise make_ex("Ioctx.read(%s): failed to read %s" % (self.name, key))
+ raise make_ex(ret, "Ioctx.read(%s): failed to read %s" % (self.name, key))
return ctypes.string_at(ret_buf, ret)
def get_stats(self):
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pybind: trivial fix of missing argument
2011-12-08 14:35 [PATCH] pybind: trivial fix of missing argument Henry C Chang
@ 2011-12-08 21:32 ` Josh Durgin
0 siblings, 0 replies; 2+ messages in thread
From: Josh Durgin @ 2011-12-08 21:32 UTC (permalink / raw)
To: Henry C Chang; +Cc: ceph-devel
On 12/08/2011 06:35 AM, Henry C Chang wrote:
> Signed-off-by: Henry C Chang<henry.cy.chang@gmail.com>
> ---
> src/pybind/rados.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/pybind/rados.py b/src/pybind/rados.py
> index 3d00938..e43cb04 100755
> --- a/src/pybind/rados.py
> +++ b/src/pybind/rados.py
> @@ -450,7 +450,7 @@ written." % (self.name, ret, length))
> ret = self.librados.rados_read(self.io, c_char_p(key), ret_buf,
> c_size_t(length), c_uint64(offset))
> if ret< 0:
> - raise make_ex("Ioctx.read(%s): failed to read %s" % (self.name, key))
> + raise make_ex(ret, "Ioctx.read(%s): failed to read %s" % (self.name, key))
> return ctypes.string_at(ret_buf, ret)
>
> def get_stats(self):
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-08 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-08 14:35 [PATCH] pybind: trivial fix of missing argument Henry C Chang
2011-12-08 21:32 ` Josh Durgin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.