]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librgw: -EISDIR
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 16 Dec 2015 16:08:02 +0000 (11:08 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:06:50 +0000 (12:06 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc

index 2fd95f7833a639481fb6f700d792a975cca3fbb5..430de4b00935e464cf3d1f5ce1afb9f27b6ba70f 100644 (file)
@@ -113,7 +113,7 @@ int RGWFileHandle::write(uint64_t off, size_t len, size_t *bytes_written,
 
   file* f = get<file>(&variant_type);
   if (! f)
-    return EISDIR;
+    return -EISDIR;
 
   if (! f->write_req) {
     /* start */