From b2f7e360a1d5cc860395a902d61707d3b884c6d5 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 25 Sep 2017 21:37:32 -0700 Subject: [PATCH] ircd::db: Allow empty query to index through cursor. --- include/ircd/db/cursor.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ircd/db/cursor.h b/include/ircd/db/cursor.h index 1cf8bb694..c7b933639 100644 --- a/include/ircd/db/cursor.h +++ b/include/ircd/db/cursor.h @@ -42,11 +42,11 @@ struct ircd::db::cursor struct index index; const where_type *where{nullptr}; - const_iterator end(const string_view &key); - const_iterator begin(const string_view &key); + const_iterator end(const string_view &key = {}); + const_iterator begin(const string_view &key = {}); - const_reverse_iterator rend(const string_view &key); - const_reverse_iterator rbegin(const string_view &key); + const_reverse_iterator rend(const string_view &key = {}); + const_reverse_iterator rbegin(const string_view &key = {}); cursor(const string_view &index, const where_type *const &where = nullptr) :index{*d, index}