From 4e952df47058064174eebda5880035c1ea6400a7 Mon Sep 17 00:00:00 2001 From: Piotr Sarna Date: Mon, 9 Aug 2021 13:12:04 +0200 Subject: [PATCH] lua: move to lang/ directory Support for more languages is comming, so let's group them in a separate directory. --- CMakeLists.txt | 2 +- configure.py | 2 +- cql3/functions/user_function.cc | 1 - cql3/functions/user_function.hh | 2 +- cql3/statements/create_function_statement.cc | 2 +- db/schema_tables.cc | 2 +- lua.cc => lang/lua.cc | 0 lua.hh => lang/lua.hh | 0 8 files changed, 5 insertions(+), 6 deletions(-) rename lua.cc => lang/lua.cc (100%) rename lua.hh => lang/lua.hh (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54ff25193f..6c6bce7237 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -508,7 +508,7 @@ set(scylla_sources locator/simple_strategy.cc locator/snitch_base.cc locator/token_metadata.cc - lua.cc + lang/lua.cc main.cc memtable.cc message/messaging_service.cc diff --git a/configure.py b/configure.py index d3959e1288..04532fe35f 100755 --- a/configure.py +++ b/configure.py @@ -1006,7 +1006,7 @@ scylla_core = (['database.cc', 'mutation_writer/shard_based_splitting_writer.cc', 'mutation_writer/partition_based_splitting_writer.cc', 'mutation_writer/feed_writers.cc', - 'lua.cc', + 'lang/lua.cc', 'service/raft/schema_raft_state_machine.cc', 'service/raft/raft_sys_table_storage.cc', 'serializer.cc', diff --git a/cql3/functions/user_function.cc b/cql3/functions/user_function.cc index 95be06d7ba..2acbeda5b6 100644 --- a/cql3/functions/user_function.cc +++ b/cql3/functions/user_function.cc @@ -20,7 +20,6 @@ */ #include "user_function.hh" -#include "lua.hh" #include "log.hh" #include "cql_serialization_format.hh" diff --git a/cql3/functions/user_function.hh b/cql3/functions/user_function.hh index b018a23ac8..0564bedde8 100644 --- a/cql3/functions/user_function.hh +++ b/cql3/functions/user_function.hh @@ -25,7 +25,7 @@ #include "abstract_function.hh" #include "scalar_function.hh" -#include "lua.hh" +#include "lang/lua.hh" namespace cql3 { namespace functions { diff --git a/cql3/statements/create_function_statement.cc b/cql3/statements/create_function_statement.cc index 31380bc3f5..9c46040f10 100644 --- a/cql3/statements/create_function_statement.cc +++ b/cql3/statements/create_function_statement.cc @@ -25,7 +25,7 @@ #include "prepared_statement.hh" #include "service/migration_manager.hh" #include "service/storage_proxy.hh" -#include "lua.hh" +#include "lang/lua.hh" #include "database.hh" #include "cql3/query_processor.hh" diff --git a/db/schema_tables.cc b/db/schema_tables.cc index 6a4e7948e7..1dcf15b761 100644 --- a/db/schema_tables.cc +++ b/db/schema_tables.cc @@ -90,7 +90,7 @@ #include "user_types_metadata.hh" #include "index/target_parser.hh" -#include "lua.hh" +#include "lang/lua.hh" #include "db/query_context.hh" #include "serializer.hh" diff --git a/lua.cc b/lang/lua.cc similarity index 100% rename from lua.cc rename to lang/lua.cc diff --git a/lua.hh b/lang/lua.hh similarity index 100% rename from lua.hh rename to lang/lua.hh