]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: remove unused "check_stdio" parameter
authorDan Mick <dmick@danceorelse.org>
Thu, 24 Jan 2013 21:38:25 +0000 (13:38 -0800)
committerDan Mick <dan.mick@inktank.com>
Fri, 25 Jan 2013 03:43:56 +0000 (19:43 -0800)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/rados.cc

index 18336fe11638d66aef4e7cb5dbe434591a5aafb8..0b012c5972b266020083830e87cbccb2b54b13b1 100644 (file)
@@ -175,7 +175,7 @@ static int do_get(IoCtx& io_ctx, const char *objname, const char *outfile, unsig
   string oid(objname);
 
   int fd;
-  if (check_stdio && strcmp(outfile, "-") == 0) {
+  if (strcmp(outfile, "-") == 0) {
     fd = 1;
   } else {
     fd = TEMP_FAILURE_RETRY(::open(outfile, O_WRONLY|O_CREAT|O_TRUNC, 0644));
@@ -203,7 +203,7 @@ static int do_get(IoCtx& io_ctx, const char *objname, const char *outfile, unsig
     offset += outdata.length();
   }
 
-  if (!check_stdio)
+  if (fd != 1)
     TEMP_FAILURE_RETRY(::close(fd));
   return 0;
 }
@@ -340,7 +340,7 @@ static int do_put(IoCtx& io_ctx, const char *objname, const char *infile, int op
   string oid(objname);
   bufferlist indata;
   bool stdio = false;
-  if (check_stdio && strcmp(infile, "-") == 0)
+  if (strcmp(infile, "-") == 0)
     stdio = true;
 
   int ret;