diff options
Diffstat (limited to 'iterator/iter_hints.h')
-rw-r--r-- | iterator/iter_hints.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iterator/iter_hints.h b/iterator/iter_hints.h index 26de323c9e98..87434b5ac2e6 100644 --- a/iterator/iter_hints.h +++ b/iterator/iter_hints.h @@ -198,4 +198,13 @@ int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp, void hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm, int nolock); +/** + * Swap internal tree with preallocated entries. Caller should manage + * the locks. + * @param hints: the hints data structure. + * @param data: the data structure used to take elements from. This contains + * the old elements on return. + */ +void hints_swap_tree(struct iter_hints* hints, struct iter_hints* data); + #endif /* ITERATOR_ITER_HINTS_H */ |