8
0
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:
AlexPeshkoff 2022-02-08 15:40:37 +03:00
parent 6382534481
commit f53c9c120c
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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();