Skip to content

Commit a25c5c5

Browse files
committed
Misc
1 parent 5b85f04 commit a25c5c5

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/jrd/jrd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/jrd/met.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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

285284
private:

0 commit comments

Comments
 (0)