File tree 2 files changed +12
-0
lines changed
tx/columnshard/engines/scheme 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 4
4
#include < ydb/core/formats/arrow/serializer/native.h>
5
5
#include < ydb/core/formats/arrow/serializer/parsing.h>
6
6
#include < ydb/core/testlib/cs_helper.h>
7
+ #include < ydb/core/tx/columnshard/engines/scheme/objects_cache.h>
7
8
8
9
extern " C" {
9
10
#include < yql/essentials/parser/pg_wrapper/postgresql/src/include/catalog/pg_type_d.h>
@@ -26,6 +27,8 @@ namespace NKqp {
26
27
TableClient =
27
28
std::make_unique<NYdb::NTable::TTableClient>(Kikimr->GetTableClient (NYdb::NTable::TClientSettings ().AuthToken (" root@builtin" )));
28
29
Session = std::make_unique<NYdb::NTable::TSession>(TableClient->CreateSession ().GetValueSync ().GetSession ());
30
+
31
+ NOlap::TSchemaCachesManager::DropCaches ();
29
32
}
30
33
31
34
NKikimr::NKqp::TKikimrRunner& TTestHelper::GetKikimr () {
Original file line number Diff line number Diff line change @@ -94,10 +94,19 @@ class TSchemaCachesManager {
94
94
return CacheByTableOwner.emplace (ownerPathId, std::make_shared<TSchemaObjectsCache>()).first ->second ;
95
95
}
96
96
97
+ void DropCachesImpl () {
98
+ TGuard lock (Mutex);
99
+ CacheByTableOwner.clear ();
100
+ }
101
+
97
102
public:
98
103
static std::shared_ptr<TSchemaObjectsCache> GetCache (const ui64 ownerPathId) {
99
104
return Singleton<TSchemaCachesManager>()->GetCacheImpl (ownerPathId);
100
105
}
106
+
107
+ static void DropCaches () {
108
+ Singleton<TSchemaCachesManager>()->DropCachesImpl ();
109
+ }
101
110
};
102
111
103
112
} // namespace NKikimr::NOlap
You can’t perform that action at this time.
0 commit comments