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
8f10df77
Commit
8f10df77
authored
11 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Patches
Plain Diff
Move box configuration file to cfg/ and simplify config file generation.
parent
0ef02e1a
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
cfg/CMakeLists.txt
+0
-3
0 additions, 3 deletions
cfg/CMakeLists.txt
cfg/core_cfg.cfg_tmpl
+21
-0
21 additions, 0 deletions
cfg/core_cfg.cfg_tmpl
src/CMakeLists.txt
+0
-2
0 additions, 2 deletions
src/CMakeLists.txt
src/box/box_cfg.cfg_tmpl
+0
-21
0 additions, 21 deletions
src/box/box_cfg.cfg_tmpl
with
21 additions
and
26 deletions
cfg/CMakeLists.txt
+
0
−
3
View file @
8f10df77
...
...
@@ -38,15 +38,12 @@ add_custom_command(
COMMAND
${
ECHO
}
'\
#include \"cfg/tarantool_${mod}_cfg.h\"' >> ${mod}_tmp.cfg
COMMAND
${
ECHO
}
'%}' >>
${
mod
}
_tmp.cfg
COMMAND
${
CAT
}
${
CMAKE_SOURCE_DIR
}
/cfg/core_cfg.cfg_tmpl >>
${
mod
}
_tmp.cfg
COMMAND
${
CAT
}
${
CMAKE_SOURCE_DIR
}
/src/
${
mod
}
/
${
mod
}
_cfg.cfg_tmpl >>
${
mod
}
_tmp.cfg
COMMAND
${
CONFETTI
}
-i
${
mod
}
_tmp.cfg -n tarantool_cfg
-c
${
CMAKE_SOURCE_DIR
}
/cfg/tarantool_
${
mod
}
_cfg.c
-h
${
CMAKE_SOURCE_DIR
}
/cfg/tarantool_
${
mod
}
_cfg.h
COMMAND
${
CMAKE_COMMAND
}
-E remove
${
mod
}
_tmp.cfg
DEPENDS
${
CMAKE_SOURCE_DIR
}
/cfg/core_cfg.cfg_tmpl
${
CMAKE_SOURCE_DIR
}
/cfg/warning.h
${
CMAKE_SOURCE_DIR
}
/src/
${
mod
}
/
${
mod
}
_cfg.cfg_tmpl
)
endmacro
()
...
...
This diff is collapsed.
Click to expand it.
cfg/core_cfg.cfg_tmpl
+
21
−
0
View file @
8f10df77
...
...
@@ -93,3 +93,24 @@ wal_dir_rescan_delay=0.1, ro
# when reading WALs.
panic_on_snap_error=true, ro
panic_on_wal_error=false, ro
## BOX
# Primary port (where updates are accepted)
primary_port=0, ro, required
# Secondary port (where only selects are accepted)
secondary_port=0, ro
# Warn about requests which take longer to process, in seconds.
too_long_threshold=0.5
# A custom process list (ps) title string, appended after the standard
# program title.
custom_proc_title=NULL, ro
# Replication mode (if enabled, the server, once
# bound to the primary port, will connect to
# replication_source (ipaddr:port) and run continously
# fetching records from it.. In replication mode the server
# only accepts reads.
replication_source=NULL
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
0
−
2
View file @
8f10df77
...
...
@@ -171,8 +171,6 @@ function(tarantool_module mod)
${
recompiled_sources
}
${
module_sources
}
)
add_library
(
lt
${
mod
}
STATIC
${
recompiled_sources
}
)
set_target_properties
(
lt
${
mod
}
PROPERTIES COMPILE_FLAGS
"-DTARANTOOL_CONFIG='<cfg/tarantool_
${
mod
}
_cfg.h>'"
)
add_dependencies
(
lt
${
mod
}
generate_headers generate_admin_cc build_bundled_libs
)
target_link_libraries
(
tarantool_
${
mod
}
lt
${
mod
}
${
common_libraries
}
)
...
...
This diff is collapsed.
Click to expand it.
src/box/box_cfg.cfg_tmpl
deleted
100644 → 0
+
0
−
21
View file @
0ef02e1a
## BOX
# Primary port (where updates are accepted)
primary_port=0, ro, required
# Secondary port (where only selects are accepted)
secondary_port=0, ro
# Warn about requests which take longer to process, in seconds.
too_long_threshold=0.5
# A custom process list (ps) title string, appended after the standard
# program title.
custom_proc_title=NULL, ro
# Replication mode (if enabled, the server, once
# bound to the primary port, will connect to
# replication_source (ipaddr:port) and run continously
# fetching records from it.. In replication mode the server
# only accepts reads.
replication_source=NULL
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