summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Mick <dmick@danceorelse.org>2013-01-24 13:38:25 -0800
committerDan Mick <dan.mick@inktank.com>2013-03-05 15:41:18 -0800
commitff014ed26bfa4fbf40acffec4eb4805b95a9982c (patch)
tree9fb30fab0105524a1c0b4ee773375280cda9a38c
parente89884da9f76b713372a79b772ba3cc2f3b03048 (diff)
downloadceph-ff014ed26bfa4fbf40acffec4eb4805b95a9982c.tar.gz
rados: remove unused "check_stdio" parameter
Signed-off-by: Dan Mick <dan.mick@inktank.com> (cherry picked from commit bb860e49a7faeaf552538a9492ef0ba738c99760)
-rw-r--r--src/rados.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rados.cc b/src/rados.cc
index 4bbfaed8650..3a097feb20d 100644
--- a/src/rados.cc
+++ b/src/rados.cc
@@ -174,7 +174,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));
@@ -202,7 +202,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;
}
@@ -339,7 +339,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;