In that case you should just likely write a function that scans a list for
{data_expired, _, _} and do something like:

``` erlang
ExpiredFiles = [Filename || {Filename, Reasons} <- MergableFiles,
scan_for_expired(Reasons)],
```




On Wed, May 8, 2013 at 3:03 PM, Brian Sparrow <notifications@github.com>wrote:

> In src/bitcask.erl:
>
> >              FileNames = [Filename || {Filename, _Reasons} <- MergableFiles],
> > -            {true, FileNames};
> > +            ExpiredFiles = [Filename || {Filename, [{data_expired,_,_}]} <- MergableFiles],
>
> The order of tuples in ListofTuples is not guaranteed so you cant do a
> match on the first element or something like that.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/basho/bitcask/pull/87/files#r4144733>
> .
>