X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fcls%2Flua%2Fcls_lua_client.cc;fp=src%2Fceph%2Fsrc%2Fcls%2Flua%2Fcls_lua_client.cc;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=44348270c80c4001095b3c7b29f74d3c220b4125;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/cls/lua/cls_lua_client.cc b/src/ceph/src/cls/lua/cls_lua_client.cc deleted file mode 100644 index 4434827..0000000 --- a/src/ceph/src/cls/lua/cls_lua_client.cc +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include -#include "include/encoding.h" -#include "include/rados/librados.hpp" // for IoCtx -#include "cls_lua_client.h" -#include "cls_lua_ops.h" - -using std::string; -using std::vector; -using librados::IoCtx; -using librados::bufferlist; - -namespace cls_lua_client { - /* - * Currently the return code and return bufferlist are not wrapped in a - * protocol that allows object class vs Lua to be distinguished. For - * instance, -EOPNOTSUPP might refer to cls_lua not being found, but would - * also be returned when cls_lua is found, but a Lua handler is not found. - */ - int exec(IoCtx& ioctx, const string& oid, const string& script, - const string& handler, bufferlist& input, bufferlist& output) - { - cls_lua_eval_op op; - - op.script = script; - op.handler = handler; - op.input = input; - - bufferlist inbl; - ::encode(op, inbl); - - return ioctx.exec(oid, "lua", "eval_bufferlist", inbl, output); - } -}