Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
17f45e23
Commit
17f45e23
authored
10 years ago
by
Roman Tsisyk
Browse files
Options
Downloads
Patches
Plain Diff
Merge box/lua/misc.lua into src/lua/init.lua
parent
9504642a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/box/CMakeLists.txt
+0
-1
0 additions, 1 deletion
src/box/CMakeLists.txt
src/box/lua/call.cc
+2
-2
2 additions, 2 deletions
src/box/lua/call.cc
src/box/lua/misc.lua
+0
-27
0 additions, 27 deletions
src/box/lua/misc.lua
src/lua/init.lua
+24
-0
24 additions, 0 deletions
src/lua/init.lua
with
26 additions
and
30 deletions
src/box/CMakeLists.txt
+
0
−
1
View file @
17f45e23
...
...
@@ -5,7 +5,6 @@ include_directories(${SOPHIA_INCLUDE_DIR})
set
(
lua_sources
)
lua_source
(
lua_sources lua/schema.lua
)
lua_source
(
lua_sources lua/box_net.lua
)
lua_source
(
lua_sources lua/misc.lua
)
lua_source
(
lua_sources lua/tuple.lua
)
set
(
bin_sources
)
bin_source
(
bin_sources bootstrap.snap bootstrap.h
)
...
...
This diff is collapsed.
Click to expand it.
src/box/lua/call.cc
+
2
−
2
View file @
17f45e23
...
...
@@ -52,8 +52,8 @@
#include
"box/schema.h"
/* contents of box.lua, misc.lua, box.net.lua respectively */
extern
char
schema_lua
[],
box_net_lua
[]
,
misc_lua
[]
;
static
const
char
*
lua_sources
[]
=
{
schema_lua
,
box_net_lua
,
misc_lua
,
NULL
};
extern
char
schema_lua
[],
box_net_lua
[];
static
const
char
*
lua_sources
[]
=
{
schema_lua
,
box_net_lua
,
NULL
};
/*
* Functions, exported in box_lua.h should have prefix
...
...
This diff is collapsed.
Click to expand it.
src/box/lua/misc.lua
deleted
100644 → 0
+
0
−
27
View file @
9504642a
-- misc.lua (internal file)
-- This function automatically called by console client
-- on help command.
function
help
()
return
"server admin commands"
,
{
"box.snapshot()"
,
"box.info()"
,
"box.stat()"
,
"box.slab.info()"
,
"box.slab.check()"
,
"box.fiber.info()"
,
"box.plugin.info()"
,
"box.cfg()"
,
"box.cfg.reload()"
,
"box.coredump()"
}
end
-- This function automatically called by the server for
-- any new admin client.
function
motd
()
return
"Tarantool "
..
box
.
info
.
version
,
"Uptime: "
..
box
.
info
.
uptime
end
-- vim: set et ts=4 sts
This diff is collapsed.
Click to expand it.
src/lua/init.lua
+
24
−
0
View file @
17f45e23
...
...
@@ -27,3 +27,27 @@ dostring = function(s, ...)
end
return
chunk
(
...
)
end
-- This function automatically called by console client
-- on help command.
function
help
()
return
"server admin commands"
,
{
"box.snapshot()"
,
"box.info()"
,
"box.stat()"
,
"box.slab.info()"
,
"box.slab.check()"
,
"box.fiber.info()"
,
"box.plugin.info()"
,
"box.cfg()"
,
"box.cfg.reload()"
,
"box.coredump()"
}
end
-- This function automatically called by the server for
-- any new admin client.
function
motd
()
return
"Tarantool "
..
box
.
info
.
version
,
"Uptime: "
..
box
.
info
.
uptime
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment