MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dictTryExpand

Function dictTryExpand

app/redis-6.2.6/src/dict.c:196–200  ·  view source on GitHub ↗

return DICT_ERR if expand failed due to memory allocation failure */

Source from the content-addressed store, hash-verified

194
195/* return DICT_ERR if expand failed due to memory allocation failure */
196int dictTryExpand(dict *d, unsigned long size) {
197 int malloc_failed;
198 _dictExpand(d, size, &malloc_failed);
199 return malloc_failed? DICT_ERR : DICT_OK;
200}
201
202/* Performs N steps of incremental rehashing. Returns 1 if there are still
203 * keys to move from the old to the new hash table, otherwise 0 is returned.

Callers 1

rdbLoadObjectFunction · 0.85

Calls 1

_dictExpandFunction · 0.85

Tested by

no test coverage detected