Skip to content

Commit e0c9b65

Browse files
committed
connpool: move source code file
The source files for built-in Lua modules are generally placed on the same level: in `src/lua` or in `src/box/lua`, disregarding whether they're public or internal. The recently introduced `experimental.connpool` built-in module is placed in the `experimental` subdirectory. This commit moves `src/box/lua/experimental/connpool.lua` to `src/box/lua/connpool.lua` to follow the existing file structure. Public, internal and experimental modules are all on the same level now. The `connpool` module is still experimental and `require('experimental.connpool')` is needed to use it. This commit doesn't change the code of the module. NO_DOC=no code changes NO_CHANGELOG=see NO_DOC NO_TEST=see NO_DOC
1 parent 05d03a1 commit e0c9b65

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/box/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if (ENABLE_CONFIG_EXTRAS)
7676
endif()
7777
# }}} config
7878

79-
lua_source(lua_sources lua/experimental/connpool.lua experimental_connpool_lua)
79+
lua_source(lua_sources lua/connpool.lua connpool_lua)
8080

8181
if (ENABLE_FAILOVER)
8282
lua_multi_source(lua_sources ${FAILOVER_LUA_SOURCES})
File renamed without changes.

src/box/lua/init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ extern char session_lua[],
179179
#endif
180180
/* }}} config */
181181

182-
experimental_connpool_lua[];
182+
connpool_lua[];
183183

184184
/**
185185
* List of box's built-in modules written using Lua.
@@ -455,9 +455,9 @@ static const char *lua_sources[] = {
455455

456456
/* }}} config */
457457

458-
"experimental/connpool",
458+
"connpool",
459459
"experimental.connpool",
460-
experimental_connpool_lua,
460+
connpool_lua,
461461

462462
FAILOVER_LUA_MODULES
463463

0 commit comments

Comments
 (0)