@@ -49,7 +49,8 @@ Db::~Db()
4949 LOG_INFO (" Db has been closed: %s" , name_.c_str ());
5050}
5151
52- RC Db::init (const char *name, const char *dbpath, const char *trx_kit_name, const char *log_handler_name, const char *storage_engine)
52+ RC Db::init (const char *name, const char *dbpath, const char *trx_kit_name, const char *log_handler_name,
53+ const char *storage_engine)
5354{
5455 RC rc = RC ::SUCCESS ;
5556
@@ -64,7 +65,7 @@ RC Db::init(const char *name, const char *dbpath, const char *trx_kit_name, cons
6465 }
6566
6667 oceanbase::ObLsmOptions options;
67- filesystem::path lsm_path = filesystem::path (dbpath) / " lsm" ;
68+ filesystem::path lsm_path = filesystem::path (dbpath) / " lsm" ;
6869 filesystem::create_directory (lsm_path);
6970
7071 rc = oceanbase::ObLsm::open (options, lsm_path, &lsm_);
@@ -150,7 +151,8 @@ RC Db::init(const char *name, const char *dbpath, const char *trx_kit_name, cons
150151 return rc;
151152}
152153
153- RC Db::create_table (const char *table_name, span<const AttrInfoSqlNode> attributes, const vector<string>& primary_keys, const StorageFormat storage_format)
154+ RC Db::create_table (const char *table_name, span<const AttrInfoSqlNode> attributes, const vector<string> &primary_keys,
155+ const StorageFormat storage_format)
154156{
155157 RC rc = RC ::SUCCESS ;
156158 // check table_name
@@ -163,8 +165,15 @@ RC Db::create_table(const char *table_name, span<const AttrInfoSqlNode> attribut
163165 string table_file_path = table_meta_file (path_.c_str (), table_name);
164166 Table *table = new Table ();
165167 int32_t table_id = next_table_id_++;
166- rc = table->create (this , table_id, table_file_path.c_str (), table_name, path_.c_str (), attributes, primary_keys, storage_format,
167- get_storage_engine ());
168+ rc = table->create (this ,
169+ table_id,
170+ table_file_path.c_str (),
171+ table_name,
172+ path_.c_str (),
173+ attributes,
174+ primary_keys,
175+ storage_format,
176+ get_storage_engine ());
168177 if (rc != RC ::SUCCESS ) {
169178 LOG_ERROR (" Failed to create table %s." , table_name);
170179 delete table;
0 commit comments