Browse code

db_text: rename is_main to _ksr_is_main

Daniel-Constantin Mierla authored on 10/01/2022 17:33:24
Showing 1 changed files
... ...
@@ -40,7 +40,7 @@ static gen_lock_t *_dbt_cachesem = NULL;
40 40
 
41 41
 static dbt_tbl_cachel_p _dbt_cachetbl = NULL;
42 42
 
43
-extern int is_main;
43
+extern int _ksr_is_main;
44 44
 
45 45
 #define DBT_CACHETBL_SIZE	16
46 46
 
... ...
@@ -267,7 +267,7 @@ dbt_table_p dbt_db_get_table(dbt_cache_p _dc, const str *_s)
267 267
 	hash = core_hash(&_dc->name, _s, DBT_CACHETBL_SIZE);
268 268
 	hashidx = hash % DBT_CACHETBL_SIZE;
269 269
 
270
-	if(!is_main)
270
+	if(!_ksr_is_main)
271 271
 	lock_get(&_dbt_cachetbl[hashidx].sem);
272 272
 
273 273
 	_tbc = _dbt_cachetbl[hashidx].dtp;
... ...
@@ -429,8 +429,8 @@ int dbt_cache_print2(int _f, int _lock)
429 429
 
430 430
 int dbt_cache_print(int _f)
431 431
 {
432
-	return dbt_cache_print2(_f, !is_main);
433
-}	
432
+	return dbt_cache_print2(_f, !_ksr_is_main);
433
+}
434 434
 
435 435
 int dbt_is_neq_type(db_type_t _t0, db_type_t _t1)
436 436
 {