Updated Branches: refs/heads/branch_4x a7f1e236d -> eef5d7a0b
Fix bug with segmentinfos cloning Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/e7d92042 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/e7d92042 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/e7d92042 Branch: refs/heads/branch_4x Commit: e7d92042b85558a329d8df6437c9477d4d98b484 Parents: a7f1e23 Author: Paul Irwin <[email protected]> Authored: Fri Nov 8 13:07:14 2013 -0500 Committer: Paul Irwin <[email protected]> Committed: Fri Nov 8 13:07:14 2013 -0500 ---------------------------------------------------------------------- src/core/Index/SegmentInfos.cs | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e7d92042/src/core/Index/SegmentInfos.cs ---------------------------------------------------------------------- diff --git a/src/core/Index/SegmentInfos.cs b/src/core/Index/SegmentInfos.cs index 72cb341..424b767 100644 --- a/src/core/Index/SegmentInfos.cs +++ b/src/core/Index/SegmentInfos.cs @@ -510,6 +510,11 @@ namespace Lucene.Net.Index public object Clone() { SegmentInfos sis = new SegmentInfos(); + sis.counter = this.counter; + sis.version = this.version; + sis.generation = this.generation; + sis.lastGeneration = this.lastGeneration; + sis.pendingSegnOutput = this.pendingSegnOutput; for (int i = 0; i < this.Count; i++) { sis.Add((SegmentInfoPerCommit)this[i].Clone());
