diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-04-06 12:10:00 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-04-06 12:37:54 -0400 |
commit | bbca77623fb5e60f5aa5f226998f0f5c7a66bbf0 (patch) | |
tree | 83565aeafc20bb297355a397b8c273115e17101f /src/backend/utils/cache/ts_cache.c | |
parent | cfbecf8100ecb83c07c2017f843b0642580416bf (diff) | |
download | postgresql-bbca77623fb5e60f5aa5f226998f0f5c7a66bbf0.tar.gz postgresql-bbca77623fb5e60f5aa5f226998f0f5c7a66bbf0.zip |
Rename MemoryContextCopySetIdentifier() for clarity
MemoryContextCopySetIdentifier -> MemoryContextCopyAndSetIdentifier
Discussion: https://www.postgresql.org/message-id/6421.1522194949@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/cache/ts_cache.c')
-rw-r--r-- | src/backend/utils/cache/ts_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/cache/ts_cache.c b/src/backend/utils/cache/ts_cache.c index 97347780d3b..f11cba4cced 100644 --- a/src/backend/utils/cache/ts_cache.c +++ b/src/backend/utils/cache/ts_cache.c @@ -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)); |