Add an api to notify decorators a reader is being undecorated

Description

When a segment is being merged away, new segments are created. There might me decorated readers for it. There need to be a way to notify decorators that a segment/reader has gone away to allow for cleanup etc.

Proposed api in ZoieIndexReaderDecorator:

void undecorate(ZoieIndexReader reader);

Environment

None

Activity

Show:
John Wang
May 25, 2010, 3:11 PM

Hi Yasu:

Seems this information is only known by the combination of MergePolicy and the ref counting code. What do you think?

-John

Assignee

Yasuhiro Matsuda

Reporter

John Wang

Labels

None

Components

Priority

Major
Configure