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

Method FunctionSetCode

src/server/server.cc:1926–1930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1924}
1925
1926Status Server::FunctionSetCode(const std::string &lib, const std::string &code) const {
1927 std::string func_name = engine::kLuaLibCodePrefix + lib;
1928 engine::Context ctx(storage);
1929 return storage->WriteToPropagateCF(ctx, func_name, code);
1930}
1931
1932Status Server::FunctionSetLib(const std::string &func, const std::string &lib) const {
1933 std::string func_name = engine::kLuaFuncLibPrefix + func;

Callers 1

FunctionLoadFunction · 0.80

Calls 1

WriteToPropagateCFMethod · 0.80

Tested by

no test coverage detected