File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -7796,7 +7796,7 @@ bool JRD_shutdown_database(Database* dbb, const unsigned flags)
77967796 delete dbb->dbb_crypto_manager ;
77977797 dbb->dbb_crypto_manager = NULL ;
77987798
7799- // dbb->dbb_mdc->destroyIntlObjects(tdbb);
7799+ dbb->dbb_mdc ->destroyIntlObjects (tdbb);
78007800 MetadataCache::clear_cache (tdbb);
78017801
78027802 // Shut down any extern relations
Original file line number Diff line number Diff line change @@ -260,14 +260,13 @@ class CharSetContainer : public HazardObject
260260 void destroy (thread_db* tdbb)
261261 {
262262 cs->destroy ();
263- for (auto coll : charset_collations)
264- {
265- if (coll)
266- coll->destroy (tdbb);
267- }
263+ release (tdbb);
268264 }
269265
270- CharSet* getCharSet () { return cs; }
266+ CharSet* getCharSet ()
267+ {
268+ return cs;
269+ }
271270
272271 HazardPtr<Collation> lookupCollation (thread_db* tdbb, USHORT tt_id);
273272 void unloadCollation (thread_db* tdbb, USHORT tt_id);
@@ -277,9 +276,9 @@ class CharSetContainer : public HazardObject
277276 static HazardPtr<CharSetContainer> lookupCharset (thread_db* tdbb, USHORT ttype);
278277 static Lock* createCollationLock (thread_db* tdbb, USHORT ttype, void * object = NULL );
279278
280- bool hasData ()
279+ bool hasData () const
281280 {
282- return true ;
281+ return cs != nullptr ;
283282 }
284283
285284private:
You can’t perform that action at this time.
0 commit comments