From 27e6f0b0f49bc231e38bf079beef719903b0f352 Mon Sep 17 00:00:00 2001 From: sears Date: Thu, 25 Feb 2010 19:00:27 +0000 Subject: [PATCH] make tuple argument to RecordIterator optional git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@626 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe --- datapage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datapage.h b/datapage.h index 949255a..1164967 100644 --- a/datapage.h +++ b/datapage.h @@ -37,7 +37,7 @@ public: } } public: - RecordIterator(DataPage *dp, TUPLE * key) : read_offset_(0), dp(dp) { + RecordIterator(DataPage *dp, TUPLE * key=NULL) : read_offset_(0), dp(dp) { scan_to_key(key); } @@ -188,7 +188,7 @@ public: inline uint16_t recordCount(); - RecordIterator begin(){return RecordIterator(this, NULL);} + RecordIterator begin(){return RecordIterator(this);} pageid_t get_start_pid(){return first_page_;} int get_page_count(){return page_count_;}