return DICT_ERR if expand was not performed */
| 333 | |
| 334 | /* return DICT_ERR if expand was not performed */ |
| 335 | int dictExpand(dict *d, unsigned long size, bool fShrink) { |
| 336 | // External expand likely means mass insertion, and we don't want to shrink during that |
| 337 | d->noshrink = true; |
| 338 | return _dictExpand(d, size, fShrink, NULL); |
| 339 | } |
| 340 | |
| 341 | /* return DICT_ERR if expand failed due to memory allocation failure */ |
| 342 | int dictTryExpand(dict *d, unsigned long size, bool fShrink) { |
no test coverage detected