diff options
author | antirez <antirez@gmail.com> | 2017-09-05 13:14:13 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-12-01 10:24:24 +0100 |
commit | 485014cc74d05436afc8257c5d7b05370410adc7 (patch) | |
tree | f00cda6c2806a3b94a31a0e4251c93c7fd1bdd5e /src/rax.c | |
parent | 100d43c1ac48e8e949bd622b302ba309ae498752 (diff) | |
download | redis-485014cc74d05436afc8257c5d7b05370410adc7.tar.gz |
Streams: RDB saving.
Diffstat (limited to 'src/rax.c')
-rw-r--r-- | src/rax.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1655,6 +1655,11 @@ int raxEOF(raxIterator *it) { return it->flags & RAX_ITER_EOF; } +/* Return the number of elements inside the radix tree. */ +uint64_t raxSize(rax *rax) { + return rax->numele; +} + /* ----------------------------- Introspection ------------------------------ */ /* This function is mostly used for debugging and learning purposes. |