You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/10/04 00:07:48 UTC
[lucenenet] 01/02: Update PerfRunData.cs
This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 3c0e54cb12841acfebc08b201c29cdd04bc11361
Author: shadowcaptain <ph...@anotherblog.com>
AuthorDate: Thu Oct 1 21:41:26 2020 +0100
Update PerfRunData.cs
Make CreateDirectory method virtual so that derived classes can provide their own Directory implementation, allowing for benchmarking of custom Directory providers (e.q LiteDB)
---
src/Lucene.Net.Benchmark/ByTask/PerfRunData.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Lucene.Net.Benchmark/ByTask/PerfRunData.cs b/src/Lucene.Net.Benchmark/ByTask/PerfRunData.cs
index c150602..9aaa449 100644
--- a/src/Lucene.Net.Benchmark/ByTask/PerfRunData.cs
+++ b/src/Lucene.Net.Benchmark/ByTask/PerfRunData.cs
@@ -181,7 +181,7 @@ namespace Lucene.Net.Benchmarks.ByTask
SetStartTimeMillis();
}
- private Store.Directory CreateDirectory(bool eraseIndex, string dirName,
+ protected virtual Store.Directory CreateDirectory(bool eraseIndex, string dirName,
string dirParam)
{
if ("FSDirectory".Equals(config.Get(dirParam, "RAMDirectory"), StringComparison.Ordinal))