1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Rename MemoryContextCopySetIdentifier() for clarity

MemoryContextCopySetIdentifier -> MemoryContextCopyAndSetIdentifier

Discussion: https://www.postgresql.org/message-id/6421.1522194949@sss.pgh.pa.us
This commit is contained in:
Peter Eisentraut
2018-04-06 12:10:00 -04:00
parent cfbecf8100
commit bbca77623f
6 changed files with 10 additions and 10 deletions

View File

@ -297,7 +297,7 @@ lookup_ts_dictionary_cache(Oid dictId)
saveCtx = AllocSetContextCreate(CacheMemoryContext,
"TS dictionary",
ALLOCSET_SMALL_SIZES);
MemoryContextCopySetIdentifier(saveCtx, NameStr(dict->dictname));
MemoryContextCopyAndSetIdentifier(saveCtx, NameStr(dict->dictname));
}
else
{
@ -306,7 +306,7 @@ lookup_ts_dictionary_cache(Oid dictId)
/* Don't let context's ident pointer dangle while we reset it */
MemoryContextSetIdentifier(saveCtx, NULL);
MemoryContextReset(saveCtx);
MemoryContextCopySetIdentifier(saveCtx, NameStr(dict->dictname));
MemoryContextCopyAndSetIdentifier(saveCtx, NameStr(dict->dictname));
}
MemSet(entry, 0, sizeof(TSDictionaryCacheEntry));