Hi Phoenix,

Thanks!  Go ahead and add this information to issue
160<http://code.google.com/p/hypertable/issues/detail?id=160>
.

- Doug

On Tue, Sep 9, 2008 at 8:03 AM, Phoenix <[EMAIL PROTECTED]> wrote:

>
> Hi, Doug
>
> We added some code in MergeScanner::initialize() and
> MergeScanner::forward() after we get the m_cell_cutoff.
> // in initialize()
> m_cell_cutoff = m_scan_context_ptr-
> >family_info[key.column_family_code].cutoff_time;
> if (m_cell_cutoff) {
>                if (!m_return_everything && m_cell_cutoff >
> key.timestamp )
>                        forward();
> }
>
> in MergeScanner::forward()
>        if (m_cell_cutoff) {
>                if (!m_return_everything && m_cell_cutoff >
> key.timestamp )
>                        continue;
>        }
>
> And as my opinion, the parameter "ts" of the function "ScanContext"
> should be the current time other than the last timestamp of the range
> as the source code do at now. As we need to delete some data weekly,
> using the current time should be more reasonable.
>
> So I changed the parameter "ts" of ScanContext(...) in function
> RangeServer::create_scanner to the clock time of the computer. And now
> it seems that it works. I'll test it in the next several days. And can
> you give me some suggestions. Thank you.
>
>
> On Sep 9, 12:32 am, "Doug Judd" <[EMAIL PROTECTED]> wrote:
> > Hi Pheoenix,
> >
> > This is one of those features that never quite got fully implemented.
>  I'm
> > in the process of doing some work on the timestamps / version numbers.
> > After I get that work checked in, that would be a good time to get the
> TTL
> > column family garbage collection working.  I filed issue
> > 160<http://code.google.com/p/hypertable/issues/detail?id=160>for this.
> >  Thanks for reporting this.
> >
> > - Doug
> >
> > On Mon, Sep 8, 2008 at 6:21 AM, Phoenix <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hi, all
> >
> > > We tried to test the attribute "TTL" of the column family, but we
> > > could not find out any affects of this attr. We read the source code,
> > > and still are confused about it.
> >
> > > In /src/cc/Hypertable/RangeServer/ScanContext.cc, we find that it is
> > > minused by the var "ts", What is ts---the time at now, I guess? And
> > > what does "cutoff_time" mean?
> >
> > > We traced it, and then found that it is assigned to m_cell_cutoff in
> > > src/cc/Hypertable/RangeServer/MergeScanner.cc, but this is never
> > > referred. Does anyone know why?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Hypertable Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/hypertable-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to