]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: do not apply rados.cstr() to a bytes
authorKefu Chai <kchai@redhat.com>
Fri, 1 Jan 2021 12:28:37 +0000 (20:28 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 Jan 2021 12:37:46 +0000 (20:37 +0800)
since the parameter is already a bytes instance, there is no need to encode it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph.in

index d0d4238c242bfd9f6940e08e42187f4f9e6f0e4b..7b21a53ab9ac62bb6863b01509e3a1b84575f7b5 100755 (executable)
@@ -160,7 +160,7 @@ cluster_handle = None
 
 def raw_write(buf):
     sys.stdout.flush()
-    sys.stdout.buffer.write(rados.cstr(buf, ''))
+    sys.stdout.buffer.write(buf)
 
 
 def osdids():