MCPcopy Create free account
hub / github.com/apache/kvrocks / ScriptSet

Method ScriptSet

src/server/server.cc:1898–1902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1896}
1897
1898Status Server::ScriptSet(const std::string &sha, const std::string &body) const {
1899 std::string func_name = engine::kLuaFuncSHAPrefix + sha;
1900 engine::Context ctx(storage);
1901 return storage->WriteToPropagateCF(ctx, func_name, body);
1902}
1903
1904Status Server::FunctionGetCode(const std::string &lib, std::string *code) const {
1905 std::string func_name = engine::kLuaLibCodePrefix + lib;

Callers 1

CreateFunctionFunction · 0.80

Calls 1

WriteToPropagateCFMethod · 0.80

Tested by

no test coverage detected