Top.Mail.Ru
box.schema.func.reload() | Tarantool
 

box.schema.func.reload()

box.schema.func.reload()

box.schema.func.reload([name])

Reload a C module with all its functions without restarting the server.

Under the hood, Tarantool loads a new copy of the module (*.so shared library) and starts routing all new request to the new version. The previous version remains active until all started calls are finished. All shared libraries are loaded with RTLD_LOCAL (see “man 3 dlopen”), therefore multiple copies can co-exist without any problems.

Note

Reload will fail if a module was loaded from Lua script with ffi.load().

Parameters:
  • name (string) – the name of the module to reload

Example:

-- reload the entire module contents
box.schema.func.reload('module')