mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +01:00
Postfixes for #7122: Invalid state of mapping cache after replacement of database
This commit is contained in:
parent
6382534481
commit
f53c9c120c
@ -1235,10 +1235,10 @@ InitInstance<SysPrivCache> spCache;
|
||||
|
||||
void resetMap(const char* db, ULONG index)
|
||||
{
|
||||
if(index & Mapping::MAPPING_CACHE)
|
||||
if (index & Mapping::MAPPING_CACHE)
|
||||
resetMap(db);
|
||||
|
||||
if(index & Mapping::SYSTEM_PRIVILEGES_CACHE)
|
||||
if (index & Mapping::SYSTEM_PRIVILEGES_CACHE)
|
||||
spCache().invalidate(db);
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ public:
|
||||
// possible clearCache() flags
|
||||
static const USHORT MAPPING_CACHE = 0x01;
|
||||
static const USHORT SYSTEM_PRIVILEGES_CACHE = 0x02;
|
||||
static const USHORT ALL_CACHE = ~0u;
|
||||
static const USHORT ALL_CACHE = MAX_USHORT;
|
||||
// Helper statuc functions to perform cleanup & shutdown.
|
||||
static void clearCache(const char* dbName, USHORT id);
|
||||
static void shutdownIpc();
|
||||
|
Loading…
Reference in New Issue
Block a user